Actress Jodie Foster's role in new sci-fi film Elysium was originally written for a male actor, but director Neill Blomkamp had a change of heart.

The Silence of the Lambs actress was determined to land a role in Blomkamp's new movie, but there wasn't a part for her initially. The District 9 director later decided to cast a female and put together a short list of actresses, which included Foster.

He says, "I thought, 'That would be f**king awesome, but there's just no way'. But then, within like a day, I had a meeting with her and she said, 'I want to play it'. I was like, 'Holy s**t!'"

The actress turned out to be a huge fan of the director and District 9 and wanted to be in his next movie in whatever capacity was available.

She says, "I felt it was a perfect movie that I wished I'd been a part of. I was just like, 'Whatever Neill does next, I'll do.'"