You sound like a socially-uncalibrated egotistical person who blames his short-comings on other people. I don't really see what the problem is with "switching modes" depending on who you're talking to. Everybody does it. It's natural. You don't want to be the guy that yaps about the research project he's doing during the department social hour, and which is coincidentally the only thing he talks about before and afte…
Even though I can follow a conversation about graph theory and computational biology, I still avoid the guys at social hour that won't talk about anything else I read his question as more like: "How do I reconcile knowing spouting X and Y are egregious idiocy with socializing with people who do that?" I hear this question as more like "Doctor, it hurts when I do that, what do I do?" Answer: Don't do that!
You're right, but after reading this to myself I realized that my problem could be more like "how do I deal with the frustrations that go along with managing relationships with people like this?"
I'm glad you posted that. Sometimes the difficulty in finding an answer stems from not fully understanding the problem one's self.