change to switch statment in TypeSwitchTest