Jeannie gives Roger a wish for his birthday, but when he wistfully wishes to switch places with Tony for an imminent space flight, the two men find they've switched bodies.
With a Pentagon demolition expert planned to open the safe before a timer blows it up, Tony hatches a complicated plan to sneak the safe back to his house, where he can re-open it himself and remain Jeannie's master.
After stealing the Moon safe, the safecrackers fail to open it. So they send it to a scrap yard, with Tony in hot pursuit as he tries to save it from the crusher.
When Jeannie is accidentally locked in a safe destined for the Moon, Tony seeks out two safecrackers to get it open before it gets launched.