Handle container type mismatch in ModeSwitcher