 When Paul (Will Smith) is talking about his thesis, he mocks the  Lord of the Rings books. Geoffrey, who is listening to him, is  played by Ian McKellan, who almost a decade later played Gandolf in  the Lord of the Rings films.