Bart will play an employee at the hotel in Farhampton where Barney (Neil Patrick Harris) and Robin (Cobie Smulders) are set to tie the knot sometime this season. It is currently unclear how many episodes he will appear in.
The Tony winner is best known for his roles as journalist Mason Treadwell on Revenge and as crazed killer pharmacist George Williams on Desperate Housewives. Last year, he also appeared on Law & Order: SVUand Political Animals.
How I Met Your Mother returns on Monday, Sept. 23 at 8/7c on CBS.
(Full Disclosure: TVGuide.com is owned by CBS.)