Daryl McCormack will play the title role in Good Luck To You, Leo Grande.
The Peaky Blinders star will feature alongside Oscar winner Emma Thompson in the film, which will be directed by Sophie Hyde.
The comedy sees McCormack’s character Leo Grande, a sex worker in his 20s who is hired by retired widow Nancy Stokes, played by Thompson, as she seeks the adventure and human connection she was deprived of in her marriage.
McCormack said: “Working alongside Emma and Sophie in such an intimate way is something I couldn’t have imagined.
“To be their Leo is something I’m massively excited for.”
Filming is scheduled to begin at the end of March.
Hyde said: “I’m so delighted to welcome Daryl to the project as Leo Grande and am relishing the energy, thoughtfulness and talent he brings.
“The pairing of Emma and Daryl feels fresh and exciting and I can’t wait to see them together on screen.”
In addition to gang drama Peaky Blinders, McCormack has also starred in BBC One’s A Very English Scandal and Amazon’s Wheel Of Time.