Add support for Enum in setObject()
Use .name() to convert to String