Created as wrapper for SwitchStack() to add assert()