Considering Character Identity

Do your characters ever feel like an extension of yourself? Mine certainly do, if nothing more than the heroines are typically people who I aspire to be, possessing the bravery to stand up for what they believe in and for others.

But what about characters that are very different from you? Race, or the lack of diversity in stories, has been a topic of particular note in recent years. But what about gender and sexuality?