cast step_mode to blockly value