java.math.biginteger nie może być obsadzony na java.lang.long

    // BigInteger can be bigger than Long. If so, then the ".longValue()" will return an exception.
    public static void main(String[] args) { // Program start method.
        BigInteger bigInteger = new BigInteger(Long.MAX_VALUE + ""); // Create the BigInteger.
        System.out.println("LongValue: " + bigInteger.longValue()); // Get the value in Long form.
    }
Bredo