Using your superior intellect, you decide to research the genie to see if you can find his weakness, or at least a way to strategically reverse the spell.
You check out a few books on magic lamps and Arabian enchantments and get to work in finding a solution to your predicament.