Sleepgotweird, I think you have encountered your individual shadow (as well as a collective one) in your dream. I suggest you do a bit of reading on the topic.

Also, consider what qualities you associate with your friend. This might give you further insights.