setAmount: convert to int