enum enum_cast(const char *) optimized