public object inc(object x) { int val = Convert.ToInt32(x); if (val < Int32.MaxValue) return val + 1; return BigInteger.valueOf(((long)val) + 1); }