I am worried there might be corner cases where a complex type can't be compared like this.