Only the same type of enum objects can be compared