(Object x)
| 275 | } |
| 276 | |
| 277 | @WarnBoxedMath(false) |
| 278 | static BigInt toBigInt(Object x){ |
| 279 | if(x instanceof BigInt) |
| 280 | return (BigInt) x; |
| 281 | if(x instanceof BigInteger) |
| 282 | return BigInt.fromBigInteger((BigInteger) x); |
| 283 | else |
| 284 | return BigInt.fromLong(((Number) x).longValue()); |
| 285 | } |
| 286 | |
| 287 | @WarnBoxedMath(false) |
| 288 | static BigInteger toBigInteger(Object x){ |