Test conversion from/to enum classes.