Ezra Miller, a longtime “Harry Potter” fan, was just as “shocked” as the rest of us to learn about the shocking twist in the new film “Fantastic Beasts: The Crimes Of Grindelwald”.

The actor, who plays Credence Barebone in the brand-new flick, is opening up about what it was like to learn that his character is really *spoiler*  the brother (Aurelius) of Albus Dumbledore, portrayed by Jude Law.

RELATED: Ezra Miller Poses For Playboy In Bunny Ears And Fishnets, Talks Sexuality, Abuse, And Johnny Depp

“I was shocked, stunned, confused, petrificus totalus with wonder and fascination,” Miller, 26, told Entertainment Weekly. “And I still have a lot of questions for which I have no answers.”

Miller revealed that Harry Potter author J.K. Rowling let him in on the secret while promoting the first film, “Fantastic Beasts And Where To Find Them”, back in 2016.

He says that knowing Barebone’s true identity prompted him to tweak his portrayal. “Yes, on a certain, a very, very subtle level,” Miller said.

RELATED: Ezra Miller Reveals Underage Harassment By Producer And Director: ‘You Guys Are Monsters’

Adding, “This character is changing, going through physical changes in relation to the Obscurial, [with] which we know he has an unusual relationship. So as he changes, there’s an opportunity for me as an actor to look to five of my favourite performances of all time — the people I’ve seen play Albus and Aberforth. Shout out to all those incredible actors, and I’m thrilled to play the game that we’re now blood relations. It’s very fun. And there’s a funny connection to the name Aurelius given one of the actors who played Dumbledore.”

“Crimes Of Grindelwald” is in theatres now.