I tell my students, it's not difficult to identify with somebody like yourself, somebody next door who looks like you. What's more difficult is to identify with someone you don't see, who's very far away, who's a different color, who eats a different kind of food. When you begin to do that then literature is really performing its wonders.
Once you allow yourself to identify with the people in a story, then you might begin to see yourself in that story even if on the surface it's far removed from your situation. This is what I try to tell my students: this is one great thing that literature can do - it can make us identify with situations and people far away.