Il tipo sottostante l'enumerazione deve essere uguale al tipo dell'oggetto oppure l'oggetto deve essere di tipo stringa. Tipo passato: 'X'; tipo sottostante l'enumerazione: 'Y'.
Click to search this error in Google
English version
Enum underlying type and the object must be same type or object must be a String. Type passed in was 'X'; the enum underlying type was 'Y'.