presto-parser/src/main/java/io/prestosql/sql/tree/Cast.java/Cast/equals
class Cast:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Cast cast = (Cast) o;
        return safe == cast.safe &&
                typeOnly == cast.typeOnly &&
                expression.equals(cast.expression) &&
                type.equals(cast.type);
    }