Eddie Murphy was almost cast in 'Star Trek'.

The 55-year-old actor was reportedly in line to appear in the fantasy film's 1986 production 'Star Trek IV: The Voyage Home' and had a part as ''astrophysicist at Berkeley'' in the original draft of the script, according to script writer Steve Meerson.

The creative mastermind told The Hollywood Reporter Online: ''It was always the same story that got approved, but the original draft included a part for Eddie Murphy.

''Eddie was on the lot at Paramount at the time and arguably was the biggest star in the world. They had told us he was a huge 'Star Trek' fan.''

However, 'The Nutty Professor' star was axed when the plot started to become more ''political''.

Although Meerson has revealed the beginning of the film was ''a lot of fun'', the tables soon turned and it became less enjoyable.

He explained: ''At the beginning of the process, it was actually a lot of fun. As the process progressed, it became less fun, because it became more political. And I don't say that with any bitterness. It's just the way things work in all businesses. We began to feel like at a certain point that this was going to be taken away from us, which in fact, it was.''