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