Tom Hanks may have been wearing a bit of a costume, but it didn’t look like he was just acting at having fun at the recent wedding of Scooter Braun, Justin Bieber’s Jewish manager.

In a video posted on Tuesday by the singer, the actor is seen joyfully dancing while wearing a yarmulke and tallit (Jewish prayer shawl). To be sure, the tallit looked like it could have been fashioned from a tablecloth, but that was beside the point.

What mattered was that Hanks was apparently fulfilling the mitzvah of entertaining the bride and groom by busting some Hasidic-inspired moves as he boogied along to Montell Jordan’s 1995 dance classic, “This Is How We Do It.”

If anyone can pull off imitating a wedding tummler, it’s the Academy Award-winning Hanks.

Tom Hanks dances to 'This is How We Do It' at Jewish manager's wedding. (Instagram screenshot)

Tom Hanks dances to ‘This is How We Do It’ at Jewish manager’s wedding. (Instagram screenshot)

Braun, 33, stood under the huppah last Sunday in Whistler, British Columbia with Yael Cohen, the 27-year-old South African founder of F—Cancer, a nonprofit cancer education organization.

It was a star-studded affair, with other celebrities like singer Ed Sheeran and actress Sophia Bush in attendance.

At the end of the ceremony, Bieber sang “All You Need Is Love,” and during the reception, he performed “Call Me Maybe” with Carly Rae Jepsen, another one of Braun’s clients.

Braun, the grandson of Holocaust survivors, accompanied Bieber to Israel on his world tour in 2011. To make a statement against cultural boycotts of Israel, the manager and singer stayed in and toured Israel for a week.