Cory Michael Smith has been cast to play Edward Nygma in Fox's upcoming Batman series Gotham.

According to Deadline, Nygma, who will later become The Riddler, is expected to appear in the pilot and there is the possibility of Smith being promoted to series regular down the line.

Nygma is a forensic scientist, who is highly intelligent, but awkward. He desperately wishes he was liked by other people.

Smith most recently appeared in the HBO miniseries Olive Kitteridge, Carol and Kristen Stewart's Camp X-Ray.

The upcoming series, based on DC Comics' longrunning Batman comics, stars O.C. alum Ben McKenzie as Detective James Gordon. The first image of the actor dressed up as Gordon was released last week.

Others cast in Gotham include Donal Logue who plays Harvey Bullock. Sean Pertwee will play Bruce Wayne's butler Alfred Pennyworth and Camren Bicondova is Selina Kyle.

Images of them, along with Robin Lord Taylor as the Penguin, were also released. David Mazouz plays Wayne as a child.

Jada Pinkett Smith, Erin Richards and Zabryna Guevara also appear in Gotham.