Correct syntax of type to type_id