Ursula Le Guin wrote a book called THE LEFT HAND OF DARKNESS, where people could and did change their sex at will. It’s a disgusting book.Sadly it was required summer reading for kids in a private, elite boarding school and totally inappropriate.
When you think about it the title is spot on.