Perhaps all writers walk such a line. In general - as we all do in our dreams - I believe I put something of myself into all the characters in my novels male as well as female.
I would go to bed every night and have dreams about having a time machine and...
They should invent some way to tape-record your dreams. I've written songs in my dreams that were Beatles songs. Then I'd wake up and they'd be gone.