Based on a story by Hart, Night School follows a group of misfits who are forced to attend adult classes with the hope that they'll pass the GED exam.

Schwartz will play Hart's best friend, an investment adviser who wants to give his pal a job but can't until Hart passes his GED.

The movie is due to begin shooting at the end of September in Atlanta and is scheduled for release on Sept. 28, 2018.

Schwartz starred with Don Cheadle and Kristen Bell in Lies for five seasons on Showtime and also appeared on NBC's Parks and Recreation.

He stars in the upcoming Netflix film Happy Anniversary and recently sold his TV series based off his book, Things You Should Already Know About Dating, You Fucking Idiot, which he will also executive produce. In addition, he was just nominated for an Emmy for outstanding actor in a short form comedy or drama series for Funny or Die's The Earliest Show, which he also created.