Changes ComparisonPredicate to convert a class into an ID so that other parts of the system can understand it better.