General class to implement data format conversion and comparison