(Object x)
| 285 | } |
| 286 | |
| 287 | @WarnBoxedMath(false) |
| 288 | static BigInteger toBigInteger(Object x){ |
| 289 | if(x instanceof BigInteger) |
| 290 | return (BigInteger) x; |
| 291 | else if(x instanceof BigInt) |
| 292 | return ((BigInt) x).toBigInteger(); |
| 293 | else |
| 294 | return BigInteger.valueOf(((Number) x).longValue()); |
| 295 | } |
| 296 | |
| 297 | @WarnBoxedMath(false) |
| 298 | static BigDecimal toBigDecimal(Object x){ |