Nope, accidentally compared a RawData object and PreprocessedData object with the same id and they were considered equal. Need the type check.