Tom Hanks just found out he's related to Mister Rogers

Tom Hanks as Mister Rogers in the 2019 Sony Picture ‘A Beautiful Day in the Neighborhood’, Photo Date: July 22, 2019 (Source: MGN)

(CNN) - Talk about getting into character!

Actor Tom Hanks just found out Sunday that he's related to Fred Rogers, the man who played 'Mister Rogers' on the children's TV show.

The two are sixth cousins, Ancestry.com discovered.

Hanks is playing 'Mister Rogers' in the upcoming film, "A Beautiful Day in the Neighborhood."

Hanks says he didn't know they were related when he took the role.

The actors share a fifth great grandfather who immigrated from Germany to America in the 18th century.

"It's a Beautiful Day in the Neighborhood," premiers November 22nd.