Desiree Akhavan, the writer, director, and star of “Appropriate Behavior,” is directing “The Miseducation of Cameron Post” from a script she co-wrote with Cecilia Frugiuele. The story is based on Emily Danforth’s coming-of-age novel of the same name with the film is set in 1993 and centered on a girl forced into a gay conversion therapy center after getting caught with the prom queen.

Moretz is cast as the lead, an orphan who’s taken in by her ultra-conservative aunt. Lane plays her friend and fellow “disciple” at the conversion therapy clinic to which they are sent.

The cast includes John Gallagher Jr., Forrest Goodluck (“The Revenant”) and Jennifer Ehle.

“The Miseducation of Cameron Post” is being produced by Beachside and Parkville Pictures, with Beachside fully financing. Olivier Kaempfer and Akhavan are executive producers.

Akhavan was nominated for Best First Screenplay at the 2015 Indie Spirit Awards for “Appropriate Behavior” and is also the co-creator and star of the web series “The Slope.” She is also creating the first season of a comedy series commissioned by Channel 4 in the U.K.