The competition series, which will return for a third season this summer (exact date to be announced), sees magician-comedians Penn & Teller trying to figure out how other magicians perform a trick. If they can't figure it out, then the magician wins the chance to open for the duo.

"Teller and I are big fans of Alyson. She is talented, smart and funny. We are so happy that she's joining us as host this season. She has promised us that she loves magic and can't get enough," Penn Jillette said in a statement. "She'd better not be bluffing, because we're going to give her more than enough."

After How I Met Your Mother ended, Hannigan appeared on CBS's short-lived comedy The McCarthys. In addition to HIMYM, where she spent nine seasons as Lily, and Buffy, where she played witch Willow Rosenberg for seven seasons, Hannigan's TV credits include Veronica Mars, Roseanne and a lot of voice work.

Please keep her away from the dark magic, Penn & Teller.