How I Met Your Mother star Neil Patrick Harris who is famous for playing Barney Stinson on the hit TV series has joined the cast of Matrix 4 alongside Keanu Reeves, Carrie-Anne Moss and Aquaman’s Yahya Abdul-Mateen II.

The news comes as a shock but there is not much revealed regarding the details of the role or who will he be playing.

The news comes courtesy of Variety:

Neil Patrick Harris is the latest addition to the ensemble cast for the upcoming fourth instalment of the “Matrix” franchise.  Plot details are currently unknown. While it was rumoured a young Morpheus could appear in the movie, sources close to the film would not confirm Harris’ specific role.

Neil Patrick Harris definitely stands out of all the cast of characters that have been announced.

Returning cast members like Keanu Reeves and Carrie-Anne Moss with new additions like Yahya Abdul-Mateen seem to be a natural fit in the action-heavy Matrix universe.

Neil Patrick Harris doesn’t exactly fit the mould. He is known for playing the playboy Barney Stinton in How I Met Your Mother, a role that has now become iconic.

Photo: Screengrab from Instagram

In Netflix’s A Series of Unfortunate Events, he did a great job as the eccentric Count Olaf.

Neil Patrick Harris also hosted the Oscars and wowed the crowd with a magic trick.

In addition, he has worked in gritty, dramatic projects before such as the creepy ex-boyfriend in David Fincher’s Gone Girl.

The character works in a way that is not too different from Harris’ normal roles, in a twisted sort of way.

Lana Wachowski’s decision to cast him in Matrix 4 is intriguing.

It always exciting when comedic actors decide to play more serious roles. But Harris could very well be cast in a comedic role and there’s nothing wrong with that.

Matrix 4 is set to be helmed by Lana Wachowski (without her sibling Lily Wachowski), with a script by Lana Wachowski, Aleksandar Hemon and David Mitchel.