(CNN) CBS Studios has filled some key roles in its miniseries based on former FBI director James Comey's memoir "A Higher Loyalty."

Jeff Daniels has been cast as Comey, while "Harry Potter" actor Brendan Gleeson will play President Donald Trump in the four-hour series, CBS Studios announced Monday.

Additionally, "House of Cards" alum Michael Kelly will take on the role of FBI Director Andrew McCabe and Tony-winning actress Jennifer Ehle will play Patrice Comey, James Comey's wife.

Screenwriter Billy Ray called Daniels, an Emmy winner for his roles in "The Newsroom" and Netflix's "Godless," "perfect for this part."

"We talked backstage after I saw him in 'To Kill a Mockingbird' on Broadway, and I knew I was looking at the only person who could play Jim Comey," he said in a statement. "Lucky for me, he said yes."

Read More