I'm not sure this comparison is sufficient. Don't you also need to make sure they are of the same `EnumTypeValue`?