Did you read “Harry Potter” books as a kid? You’re a better human being than most, scientists say.

» RELATED: ‘Pawgwarts': Animal shelter gets inspiration from Harry Potter 

Researchers from universities in Italy published a paper in the Journal of Applied Social Psychology that explored how story reading can be a powerful strategy in improving human attitudes.

Many of the fictional groups from “Harry Potter,” including Muggles, were marginalized much like immigrants, homosexuals and refugees are in the real world. That’s why scientists wanted to use the novels to examine the “perception of stigmatized groups” among elementary, high school and university students.

First, they administered a six-week course on “Harry Potter” to 34 fifth-graders. By the end, they asked them to fill out a questionnaire on immigration. They found that those who read the book discussed topics, such as bigotry and prejudice, while those who didn’t read it did not.

Next, they studied 117 high school students and discovered that those who dived into “Harry Potter” had more positive perceptions of the LGBT communities than those who did not.

Lastly, they assessed college students. They noticed that those who read it had less of an emotional connection with Voldemort, the villain of the series, and had "improved attitudes toward refugees," the study read.

» RELATED: There's now a Harry Potter wizarding school in Central Texas

“Results from one experimental intervention and two cross-sectional studies show that reading the novels of Harry Potter improves attitudes toward stigmatized groups among those more identified with the main positive character and those less identified with the main negative character,” the authors wrote.

“Participants reading about Harry Potter's interactions with characters belonging to stigmatized groups may have learnt to take the perspective of discriminated group members,” they said, “and in turn, applied this enhanced ability to understand disadvantaged groups to real-world out-group categories.”

Since their findings demonstrated that reading Harry Potter books yielded positive attitudes among children, they believe their studies could help reduce prejudices against disadvantaged groups.

For future experiments, they hope to test other popular novels that may have similar effects.

» RELATED: The kids of 'Harry Potter:' Then and now