Tony Shalhoub is coming back to the small screen.
The former "Monk" star has landed a role in CBS's upcoming comedy pilot from "How I Met Your Mother" producer Rob Greenberg, which is currently untitled after bearing the moniker "Ex-Men."
Also read: Kal Penn Joins CBS Comedy Pilot
The pilot centers on a group of single guys who live in a short-term rental complex. Shalhoub, who played obsessive-compulsive detective Adrian Monk on USA's "Monk" from 2002 to 2009, will play Frank, a four-time divorcee and self-regarded ladies' man who lives at the complex.
As previously reported, former "House" star Kal Penn has also signed on for the pilot as Gil, a guy who moves into the complex as he waits for his wife to forgive him for an affair he had three years earlier.
The pilot, which Greenberg is writing and directing, was greenlit for the 2013-14 season earlier this year.
TV Line first reported news of Shalhoub's casting.