Sara Gilbert is going back to school.
"The Talk" co-host Gilbert has been cast in CBS's comedy pilot "Bad Teacher," based on the 2011 Cameron Diaz film.
Gilbert will ply Irene, a a shy, introverted drama and English teacher who, when activated, can be a bit intense.
"Fringe" actress Ari Graynor has been cast in the lead as Meredith Davis, a hot, confident, unapologetic trophy wife who takes a job at a middle school to meet a new man after her husband leaves her without a dime.
Sony Television is producing the single-camera pilot in association with Mosaic Media Group.
Also read: CBS Pilots 2013
Hilary Winston ("My Name Is Earl," "Community") is writing and executive producing. Lee Eisenberg and Gene Stupnitsky, who were behind the film, are executive producing as well.
Gilbert's "Bad Teacher" casting was first reported by Deadline.