The last episode of "How I Met Your Mother" will air tonight, March 31 at 8pm EST on CBS. ©20th Century Fox Television

The last episode of “How I Met Your Mother” will air tonight, March 31 at 8pm EST on CBS.
©20th Century Fox Television

(Relaxnews) – The cast of “How I Met Your Mother” will appear together for the last time in the show’s finale, which airs at 8pm ET Monday, March 31, on CBS. After returning to the sitcom season after season since 2005, the actors are now going their separate ways and looking towards new horizons.

Most of them are taking a break from TV to focus on film projects, and the success and popularity of “HIMYM” has opened up plenty of doors for them in Hollywood.

Neil Patrick Harris, who plays Barney Stinson, will be seen in two features this year. The star, who got his start playing a teenage doctor on “Doogie Howser, M.D.,” will appear in Seth MacFarlane’s “A Million Ways to Die in the West.” Slated for release in the US on May 30, the comedy also stars MacFarlane himself alongside Liam Neeson, Amanda Seyfried and Charlize Theron. In October he will shift into a very different genre in David Fincher’s “Gone Girl.” Ben Affleck and Rosamund Pike will also appear in this thriller adapted from the Gillian Flynn novel of the same name. In the meantime, Harris can be seen on the stage of Broadway’s Belasco Theatre in the rock opera “Hedwig and the Angry Inch,” in which he plays a transsexual rock star.

Jason Segel, better known to “HIMYM” fans as Marshall Eriksen, is already a familiar face on the silver screen. After his role on the cult series “Freaks & Geeks,” the actor went on to appear in “Knocked Up,” “Forgetting Sarah Marshall,” “The Muppets” and “This is 40” among other comedies. After “How I Met Your Mother,” Segel will return to theaters alongside Cameron Diaz and Jack Black in “Sex Tape,” which is due for release in the US on July 25. The actor will play author David Foster Wallace in his next project, “The End of the Tour,” co-starring Jesse Eisenberg.

Outside of her role as Robin Scherbatsky, Cobie Smulders played S.H.I.E.L.D. Agent Maria Hill in “The Avengers” in 2012, and she will reprise the role in “Captain America: The Winter Soldier,” slated for US release on April 4. Smulders is expected to play the character once again in April 2015 in “Avengers: Age of Ultron.” In another superhero role, the character voiced Wonder Woman in “The Lego Movie,” released in February.

Josh Radnor, the man behind Ted Mosby, has not announced specific projects for the time being, although he is expected to return to the independent film scene. Like “Friends” star David Schwimmer, Radnor decided to make the transition from acting to directing. The actor already has two features under his belt: “Happythankyoumoreplease” (2010) and “Liberal Arts” (2012), both of which were screened at the Sundance Film Festival.

The only one of the show’s stars to remain on TV is Alyson Hannigan, who plays Lily Aldrin. Known for playing Willow in “Buffy the Vampire Slayer” and Michelle in the “American Pie” franchise, the actress could return once again to CBS in a potential series. The 40-year-old actress co-stars with Tom Papa in “More Time with Family,” a comedy pilot produced by Ben Affleck and Matt Damon.

Cristin Milioti, who joined the cast only recently in the role of the famous mother, is also among the stars of the current pilot season. The actress, whose career has received a boost from her roles in “How I Met Your Mother” and “The Wolf of Wall Street,” could land on ABC in the romantic comedy series “A to Z.”