Retrieves the value of an enum object.
## S3 method for class 'enum' x$name
x
An enum object
name
The name of the field to access (should be "value")
The value of the enum object