convert to Fixnum in Cart#{add,remove}