Use isComparableTo instead of isCastableTo for validating ON expression in joins