The '40 Year Old Virgin' star Carell portrays a flamboyant Las Vegas magician in the comedy, and he had Carrey, 51, in mind for the part of his onscreen rival Steve Gray, a daring street performer, reported MTV online.
"Well you know, it was really about my friend Steve Carell calling up and saying, 'You want to jump in and have some fun?' Pressure's off me man. I was just having a blast in this thing.
Carell added, "When we got the script and we were talking about Steve Gray, we sent the script (to Carrey). I didn't think for a second that Jim would want to do it, and then he did, and it was the best day ever.