[Attribute] Ensure comparison against same type