allow classes to be compared against conditions