Ryan Gosling says he was thrilled to be able to portray one of his heroes in his upcoming movie, First Man, about Neil Armstrong, the astronaut who became the first man on the moon in 1969.

“As soon as I learned what the moon was, I learned that somebody named Neil Armstrong walked on it,” Gosling, 37, tells PEOPLE.

Film Title: First Man
Ryan Gosling in First Man
| Credit: Universal Pictures and DreamWorks Pictures

While preparing for the role, the actor says he was surprised to learn how dangerous the mission was.

“I had no idea how claustrophobic and frail those space capsules were,” he says. “We have more computing power in our cell phones than they had on those early spacecraft.”

First Man Premiere, Opening Ceremony And Lifetime Achievement Award To Vanessa Redgrave Red Carpet Arrivals - 75th Venice Film Festival
Credit: Jacopo Raule/FilmMagic

For more on Gosling, pick up this week’s issue of PEOPLE on newsstands now.

The drama, which also details Armstrong’s relationship with his wife, Janet (Claire Foy), and the tragic death of their daughter, reunites Gosling with his La La Land director, Damien Chazelle.

'Jimmy Kimmel Live' TV show, Los Angeles, USA - 07 Jun 2018
Ryan Gosling on set of First Man
| Credit: Shutterstock

“I can’t imagine a greater duality than that between the intimacy of the Armstrongs’ personal life and the infinite nature of space,” Gosling says.

As for the pressure of portraying an American hero? He jokes he’s fine—”as long as people don’t find out that I’m Canadian.”

First Man also stars Kyle Chandler, Jason Clarke, Patrick Fugit, Christopher Abbott, Ciaran Hinds, Ethan Embry, Shea Whigham, Corey Stoll and Pablo Schreiber.

It opens in theaters Oct. 12.