Raven Tower by Ann Leckie comes to mind, if you want fantasy.
The protagonist of Witch King by Martha Wells is technically a demon who is gifted a human body but their female body is killed and they have to switch to a male in the book. Also fantasy.