define == and != between UInt and Int (see #2871)