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