public object negate(object x) { int val = Convert.ToInt32(x); if (val > Int32.MinValue) return -val; return -((long)val); }