The actor, who has recurred on New Girl, will star in the network's comedy pilot Sober Companion, The Hollywood Reporter has learned. The pilot will now be shot as a single-camera comedy instead of a multicam.

From 90210'sDavid S. Rosenthal and Jennie Snyder Urman, the comedy centers on a charming but self-destructive attorney who finds his world turned upside down when a court-appointed and highly unconventional sober companion takes control of his life. Rosenthal and Urman will pen the script and executive produce the CBS Television Studios drama, which is being produced with an eye toward series production under Fox's new approach to pilot season.

Long will play Jeremy, the perennially upbeat, maddeningly eccentric sober companion who uses unconventional methods to keep clients clean. He joins a cast that includes Pete Davidson and Ally Maki.

Long, repped by ICM Partners and Intellectual Artists Management, most recently starred in Kevin Smith's feature Tusk as well as Emmy Rossum-starrer Comet. His credits include Unsupervised, Ed, Going the Distance, He's Just Not That Into You and Dodgeball.