I was on a train and a dog came over to me and wanted to get under my skirt. I was annoyed that if he bit me, I'd have to get shots. Then I noticed that the dog has become a cat and it sat on my lap and I petted it. Then I noticed it was a teacher of mine that was sitting in my lap and petting. Then she got up and sat in front of me and then I noticed she was a man! And she said, yes, I am in fact a man!
Sounds like a dream of discovery - the problem you started out with turned out to be something valuable, and nothing that you though it was.