The Hollywood Reporter said Hanks will play Jack, a by-the-book police detective who finds himself partnered with Dan, an alcoholic veteran cop on the edge.
Hanks, the son of Oscar-winning actor Tom Hanks, has appeared in the films "Orange County," "King Kong" and "The House Bunny." He also starred on the television series "Roswell" and had a recurring role on "Mad Men."
Whitford is best known for his work on TV's "The West Wing" and "Studio 60 on the Sunset Strip."
Texas principal bans speaking Spanish, stirs controversy
Martin Bashir resigns from MSNBC over Sarah Palin comments