Java convert BigInteger to long In this Java core tutorial we learn how to use the java.math.BigInteger.longValueExact() and java.math.BigInteger.longValue() method to convert a BigInteger object into a long value.