make item class compatible with ints