to number when parse enum