Add casts to reduce gcc warning noise.