Photo: Neil Mockford/FilmMagic; Kevin Mazur/WireImage

LONDON, ENGLAND - MAY 15: Jonah Hauer-King attends the UK Premiere of “The Little Mermaid” at Odeon Luxe Leicester Square on May 15, 2023 in London, England. (Photo by Neil Mockford/FilmMagic); NEW YORK, NEW YORK - SEPTEMBER 19: Harry Styles attends the “Don’t Worry Darling” photo call at AMC Lincoln Square Theater on September 19, 2022 in New York City. (Photo by Kevin Mazur/WireImage)

Jonah Hauer-Kingis flattered to be mentioned in the same sentence asHarry Styles.

The relative newcomer spoke toThe Hollywood Reporteraboutlanding the role of Prince Ericin the upcomingLittle Mermaidlive-action film after the Grammy winner was considered for the same part.

“He’s pretty cool and amazingly talented, so yeah, it was cool to be mentioned in the same breath,” Hauer-King, 27, said of Styles, 29.

Director Rob Marshall confirmed toEntertainment Weeklyin April that he had talked with Styles about playing the film’s love interest.

However, Styles “really felt like he wanted to go off and do the movies that he ended up doing, which were sort of darker,” said Marshall, 62, referring to the singer’s R-rated 2022filmsDon’t Worry DarlingandMy Policeman.

Laurent KOFFEL/Gamma-Rapho via Getty

Harry Styles

Styles previously spoke aboutturning down theLittle Mermaidrole. He toldThe Facemagazineback in 2019 that a possible role for him “was discussed” but never came to fruition.

“I want to put music out and focus on that for a while,” he said at the time. “But everyone involved in it was amazing, so I think it’s going to be great. I’ll enjoy watching it, I’m sure.”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

Hauer-King was eventually cast oppositeHalle Bailey’s Ariel. Marshall toldEWthat the actor had a “sweetness” and “deep passion” that fit the character.

Axelle/Bauer-Griffin/FilmMagic

World Premiere of Disney’s “The Little Mermaid” on May 08, 2023 in Hollywood, California. (Photo by Axelle/Bauer-Griffin/FilmMagic)

As for preparing for the role, Hauer-King said of himself and Bailey, 23, who makes up half of the sister singing duoChloe x Halle, “We were both experiencing something very new, doing a film like this.”

“She obviously had vast experience in the music world, much more than I did, and I’ve probably done a few more acting gigs than she had, but in terms of doing a film like this, there was nothing that really could have prepared us,” he added.

The cast also includesJavier Bardem,Melissa McCarthyandJacob Tremblay, plusThe Undoingactress Noma Dumezweni as a new character, Prince Eric’s mom Queen Selina.

The Little Mermaidswims into theaters May 26.

source: people.com