The actor turned in a hilarious turn as the physicist sidekick.