Within each one of us there is masculine and feminine potential, and when there is conflict between the two, this can sometimes show itself in dreams of bisexuality or transvestism. Dreaming of a person who is both masculine and feminine either suggests bisexuality or the perfect balance in one person of the masculine and feminine qualities.
If you have a gender-shifting dream in which you believe that you are a member of the opposite sex, this generally is a dream about changes in perspective or exploring different aspects of yourself. Don’t judge yourself too harshly if you have such a dream, as these are more often markers of psychological maturity and development than an indication that something is amiss.
[1]