iio: introduce type casts to avoid __ucmpdi2 calls