Naturally, we tend to bond with people who are like us. However, we seem to be unaware of this fact. A study in Evolutionary Psychology found when individuals were asked what they wanted in a partner, the majority said they would prefer a complementary partner rather than a similar one. However, the individuals were more likely to choose a partner who they thought was very similar to them.
In reality, this shows we're not influenced by our friends after we meet them, we organically gravitate towards them because they're just like us. With total strangers, we can use this to our advantage, and shift the conversation to topics you're both interested in. This gets them to talk about things they like, as you're being receptive about this similarity.