#result == T(fully.qualified.path.to.AnEnum).A_VALUE
#object.someEnumProperty.name() == 'CERTAIN_VALUE'
would work as well.