Captain America, Thor and Iron Man better move over – Robin Sparkles is set for the Avengers Variety reports that Cobie Smulders How I Met Your Mother ) is finalizing her deal to join the Marvel mega-movie, confirming Deadline's report from this weekend that she was likely to get the role of SHIELD agent Maria Hill

Cobie+Smulders+IS+Maria+Hill

Like most of the cast members for these Marvel films, Smulders contract will tie her to the Avengers and other Marvel films for a long time – she'll be signing for nine films total. While her character will work closely with Samuel L. Jackson's Nick Fury , Variety notes that in the comics, Maria Hill eventually took over SHIELD herself.Smulders' casting is not too shocking – while she's never directly worked with writer/director Joss Whedon before, Whedon named her as someone he thought would make a good Wonder Woman, when he was attached to that project. In addition, two of Smulders' How I Met Your Mother costars -- Alyson Hannigan (Buffy the Vampire Slayer) and Neil Patrick Harris (Dr. Horrible's Sing-Along Blog) -- have close ties to Whedon.