Andy Samberg; Jean Smart.Photo: Jason Merritt/Getty; Rachel Luna/Getty

Andy Samberg attends the 67th Annual Primetime Emmy Awards at Microsoft Theater on September 20, 2015 in Los Angeles, California., Jean Smart attends the FYC red carpet of Bravo’s “Dirty John” at Saban Media Center on May 02, 2019 in North Hollywood, California.

Andy Sambergisn’t done with the time-travel rom-com genre yet — and this time,Jean Smartis his leading lady.

The two are set to costar in anupcoming film titled42.6 Yearsfrom Amazon Studios, according to multiple outlets includingThe Hollywood ReporterandEntertainment Weekly.

Samberg, 44, will play a man who is cryogenically frozen for decades in an effort to save his life, via an experimental procedure.

“Whenhe wakes up 42.6 years later, physically unchanged thanks to being frozen, he finds himself alone in a future with no one to turn to but his ex-girlfriend (Smart, 71), who is now much older than him,“THRreported.

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.

Kevin Mazur/WireImage; Rich Fury/Getty

Andy Samberg attends the 2014 Film Independent Spirit Awards at Santa Monica Beach on March 1, 2014 in Santa Monica, California., Jean Smart, jewelry detail, attends the 73rd Primetime Emmy Awards at L.A. LIVE on September 19, 2021 in Los Angeles, California. (Photo by Rich Fury/Getty Images)

Samberg previously starred alongsideCristin Miliotiin the 2020 sci-fi rom-comPalm Springs, which finds their characters stuck in an endless time loop, repeating the same wedding over and over again.How I Met Your Motheralum Milioti, 37, played Samberg’s “partner-in-time” as the pair navigate their way through a never-ending first date.

Samberg, who also co-producedPalm Springs, told PEOPLE in July 2020 that he jumped at the chance to put anew twist on the romantic-comedy genre.

“I think rom-coms can have that same comfort food energy for people, especially when they want to just be whisked away in something cozy and whimsical,” he said. “And I think we sort of split the difference onPalm Springsbetween that and something else.”

“But I definitely see the appeal, and we definitely wanted it to feel that for people who do love rom-coms,” he added.

Meanwhile, Smart has nabbed two consecutiveEmmy Awardsfor outstanding lead actress in a comedy series, in 2021 and 2022, for her role as comedian Deborah Vance on HBO Max’sHacks.

“He was incredibly kind. That’s what makes himBrad Pitt,” she added.

source: people.com