public void DifferenceWith(IBitset otherSet) { RLEBitset otherRLESet = (RLEBitset)otherSet; // cast to an RLEBitset - errors if cannot cast AndWith(otherRLESet.Not()); }