tuweni / org.apache.tuweni.units.bigints / UInt256Value / toLong

toLong

open fun toLong(): Long (source)

Provides the value as a long.

Exceptions

ArithmeticException - If the value does not fit a long, that is if !fitsLong().

Return
Long: This value as a java long assuming it is small enough to fit a long.