@Override
    public boolean equals(Object object) {
        if (! (object instanceof Attribute other)) return false;

        if (!this.name.equals(other.name)) return false;
        return isCompatible(other);
    }
Converts to the right field type from an attribute type
config-model/src/main/java/com/yahoo/schema/document/Attribute.java