Answer: A person’s character says nothing about the attributes of his soul. When person begins to study the wisdom of Kabbalah he receives forces from Above, from the Surrounding Light. After a few years of serious study during which he totally changes from the state of Lo Lishma (not for its sake) to Lishma (for its sake), he undergoes great changes and his character is totally transformed.
As for the reincarnation of a female soul as a male soul and vice versa, this does not exist in the spiritual world. Every soul is made of both a male and a female part. There cannot be one without the other, like a dipole.
If you connect to someone through your male part, you connect to another person through your female part because all the souls are connected in a mutual flow. There is either a dominant male or a female part in each of us, but in general, they are mutually balanced.
From the Kabbalah Lesson in Russian 3/6/16