Freddie Highmore will star as the teenage Nigel Slater in a 60s set adaptation of the food writer and cook Nigel Slater's memoir Toast.
The former child star, but now 18 year old, Highmore, has recently completed filming on Homework in New York alongside Emma Roberts.
Helena Bonham Carter will play Slater's step-mother in the BBC One drama.
Best-seller Toast, which has sold more than a quarter of a million copies, traces a childhood through foods which have gone in and out of fashion.
Slater has said he sought solace in food after his mother died when he was nine, and he then had a difficult relationship with both his father and step-mother.
He has said: "Food has been my career, my hobby, and, it must be said, my escape."
The casting was announced at the Cannes Film Festival.
Executive Producer Paul Trijbits of Ruby Films said: “Freddie and Helena were our dream choices for Toast - we’re so happy to bring the Ruby standards of quality casting to this wonderful coming of age story for a worldwide audience.”
Executive producer Alison Owens said it was a "wonderful coming of age story".
The film has been scripted by Lee Hall, who won an Oscar nomination for Billy Elliot, and will start shooting in June in the West Midlands.