object Test extends App { val b = new java.math.BigInteger("123") val big1 = BigInt(b) val big2: BigInt = b }