Courtesy IMDB's StudioBrief blurb "Crowds Gather For 'X-Men 2' Premiere": Ian McKellen said that the message of the film was important to him. "It's basically about being gay," the openly gay actor said. "Or at least being part of a minority that society disregards."
Gay, but with superpowers. That's the real message.