Explicit casts, to avoid compiler warnings about implicit conversions.