Cast symbol_code to enum TokenCode