sexual inversion

noun

1.
a term formerly used to mean taking on the gender role of the opposite sex