You are not allowed to do that; most probably f3 cannot be cast to a single, valid Enum value.