"Supergirl" looked to Wonderland, not the fifth dimension, to find its Mister Mxyzptlk.

A new photo from the set of the CW drama reveals that actor Peter Gadiot, who played Cyrus on ABC's short-lived "Once Upon a Time in Wonderland," has been cast as the classic Superman foe. However, we can see that the impish villain won't look anything like he does in the DC Comics source material, where he's traditionally depicted as an older, diminutive character.

RELATED: Kevin Smith's "Supergirl" Episode Stars Roulette, Aliens -- and His Daughter

#Supergirl star Melissa Benoist & guest star Peter Gadiot as Mr. Mxyzptlk share a laugh between scenes yesterday. pic.twitter.com/OrrPnOaqiO— Canadagraphs (@canadagraphs) January 6, 2017

Created by writer Jerry Siegel and artist Ira Yarborough for 1944’s “Superman” #30, Mister Mxyzptlk is a mischievous imp from the fifth dimension who delights in tormenting the Man of Steel. More fun-loving prankster than straightforward villain, Mxyzptlk’s fifth-dimensional technology appears as magic to three-dimensional beings; the limits of his powers are vast and unknown. Famously, he can only be stopped and returned to his home dimension by tricking him into saying his name backward (“Kltpzyxm”).

RELATED: "Supergirl": Livewire, Metallo & Other "Fan-Favorite" Villains to Return

One of Superman’s most enduring opponents, Mister Mxyzptlk has appeared with some frequency from the Golden Age through DC’s New 52 reboot. The little imp has appeared in animated form on “The New Adventures of Superman,” “Super Friends,” “Superman: The Animated Series” and “Batman: The Brave and the Bold,” but he’s certainly no stranger to live-action: He was played by Michael J. Pollard on “Superboy,” by Howie Mandel on “Lois & Clark: The New Adventures of Superman” and by Trent Ford on “Smallville.” Gilbert Gottfried reprises his “Superman: The Animated Series” voice role as Mxyzptlk on the new “Justice League Action.”

Gadiot's credits also include the USA Network drama "Queen of the South" and Spike TV's "Tut" miniseries.

There's no indication yet when Gadiot's Mister Mxyzptlk will debut on "Supergirl," which returns Monday, Jan. 23, at 8 p.m. ET/PT on The CW.