compatible data types comparison