Add FromPrimitive to the enums