fix usertype comparison to compare ints