Simple typecast fix to silence compiler warnings.