Formal:
* Je suis ravi(e) que nous ayons des intérêts communs. (I am delighted that we have common interests.)
* Je suis content(e) de constater que nous partageons certains centres d'intérêt. (I am happy to see that we share some interests.)
Informal:
* C'est cool qu'on ait des trucs en commun! (It's cool that we have things in common!)
* Je suis content(e) qu'on partage les mêmes passions. (I am happy that we share the same passions.)
* J'aime bien qu'on ait des centres d'intérêt similaires. (I like that we have similar interests.)
More specific:
* Je suis heureux(se) de découvrir que nous partageons une passion pour [specific interest]. (I am happy to discover that we share a passion for [specific interest].)
You can choose the option that best fits the context and your relationship with the person you are talking to.