public object setBit(object x, int n) { if (n < 63) return Convert.ToInt64(x) | (1L << n); else return toBigInteger(x).setBit(n); }