use FromPrimitive for enum getters