Tyler Perry is taking time out from his writing, producing and directing career to co-star in Brain On Fire, director Gerard Barrett’s film based on Susannah Cahalan’s bestselling memoir. Chloë Grace Moretz stars in the story of a young woman’s terrifying descent into insanity, which includes hearing voices, hallucinating, battling bouts of paranoia and lashing out during violent episodes. Perry will play Richard, her boss at the New York Post.

Thomas Mann, Jenny Slate, Richard Armitage and Carrie-Anne Moss also star in Brain On Fire, which is shooting in Vancouver for a 2016 release. Broad Green Pictures is teaming with Charlize Theron’s Denver & Delilah and Foundation Features to produce and finance the film, which Broad Green will distribute in the U.S. Studio partner Mister Smith Entertainment will continue to sell international rights after launching Brain On Fire at Berlin’s EFM in February.

Perry created and exec produces OWN’s signature series The Haves And Have Nots, For Better Or Worse and If Loving You Is Wrong. He also wrote, directed, produced and acted in recent feature The Single Moms Club along with the Madea franchise.  His other recent acting credits include Gone Girl, Alex Cross and the upcoming Teenage Mutant Ninja Turtles 2.