Migrate the switch statement
Migrate the switch statement