Jim Parsons(Photo credit: Jason Merritt/Getty Images)

“The Big Bang Theory’s” Jim Parsons has signed on to star in the Warner Bros. supernatural comedy “Man-Witch,” taking over the part from previously attached actors Jack Black and Zach Galifianakis.

According to The Hollywood Reporter, Parsons will play a teacher who “abruptly discovers he’s got witchlike powers. A coven of real witches takes him in, promptly sending him to ‘witch school,’ where he is the lone adult, surrounded by little girl witches-in-training.”

The film will be Parsons’s first headlining role in a comedy movie. The Texas native appeared in “The Muppets” movie and provided a voice in the animated film “Home” as well as played supporting roles in the thriller “Visions” and Zach Braff’s films “Wish I Was Here” and “Garden State.”