Casts and type changes for compiler warnings.