Dominic Cooper has been cast in a four-part biopic about James Bond creator Ian Fleming

The Mamma Mia! actor will portray the novelist and former naval officer's experiences during the Second World War in Fleming which is being produced by Ecosse Films for Sky Atlantic.

Speaking about the role Cooper said: "Stepping into the shoes of the spy who not only created the enigmatic character of 007, but who fantasized about being him, has to be every actor's dream."

Douglas Rae, executive producer for Ecosse Films, added: "Ian Fleming's story is as dramatic and entertaining as any of the Bond films."

The biopic will be filmed in the UK and Budapest, and will be set during the Second World War when Fleming was heavily involved in planning naval strategy against the Nazis.

Mat Whitecross (The Road to Guantanamo) will direct Fleming which was written by John Brownlow and Don Macpherson. The mini-series will air on Sky Atlantic later this year.