One of the things that will never get explained in the films is how Ben was able to retain his identity, because it happened somewhere between the third and fourth movies. I set up that this is a discipline that he learned from Yoda Yoda told him how to do that.
George Lucas