Me:: "I need to purchase a really good sunscreen." "Friend":: "Why? Your kind of people don't get skin cancer."
I can't see you in person, but from what you say, it sounds like you are a person of color yourself, and a self-proclaimed friend made this insensitive comment to you.  Is that what happened?
I don't mean anything by that, it's just my opinion.
Well, if I understand correctly, it sounds like what your friend said to you was very insensitive.  Perhaps your friend didn't mean any harm by it, though, and might have just been trying to reassure you that skin cancer is not something you need to worry about.  However, I would let this person know that UV rays are harmful to everyone, so that he or she can avoid spreading medical misinformation.