provide enum copy to int and int copy to enum such as Mybatis EnumOrdinalTypeHandler ``` int = enums.ordinal() enums.values()[int] ```