tests for hashs, casts and cross type comparisons