def __eq__(self, other):
    return (isinstance(other, Cast) and (other.v == self.v) and (other.typ == self.typ))
def __eq__(self, other):
    return (isinstance(other, Cast) and (other.v == self.v) and (other.typ == self.typ))