"Der Mann ist der Frau ähnlich."
Exactly. Dative is also called the "Wem-Fall" (whom-case). Thus, you can check the case with an interrogative. Whom is the man similar to? The woman. Wem ist der Mann ähnlich? Der Frau.
How would one say the opposite meaning? "The man is different from the woman."