Enum::fromScalar(): checks if value exists and throws checked/runtime exception when that case happens