The other answers have covered most of the bases. Miracle and Wish explicitly work. Polymorph Any Object probably works. Working with the DM can make just about anything work, through Rule Zero/DM fiat.
There's also the "rebuild quest" concept. It basically sets up a "sidequest" which results in you being able to change your character's race. It could, however, derail the campaign a bit, so DM approval only.
Players Handbook II, page 198:
Race rebuilding
Changing your character's race [...] isn't unknown in fantasy[.] Whatever your reason, the race rebuilding rules show you how to keep playing the same person in a new body.
This method of rebuilding can also be used to recreate characters brought back by reincarnate and similar effects that restore characters to life as members of different races.
The Process
Each time your character completes a rebuild quest, you can change his race. [Swap racial traits and abilities, keep known languages unless you don't want to.]
[If you no longer qualify for a feat, it doesn't work, so it either stays in the slot or gets replaced, your choice]
[If you no longer qualify for a prestige class, you lose class features and special abilities granted by it, but retains hit points, BaB and saves. You can swap those levels out for something else if you want to.]
Page 196:
Rebuilding
[...][T]o accomplish a character rebuild, your PC must complete a significant and challenging quest. [...]
The DM can design new character rebuild quests for your campaign[.] [...]