Addresses 'implicit conversion looses integer precision' errors.