checkedLongValue

fun checkedLongValue(item: DataItem): Long

Accepts a DataItem, attempts to cast it to a Number, then returns the value Throws IllegalArgumentException if the DataItem is not a Number. This method also checks bounds, and if the given data item is too large to fit in a long, it throws ArithmeticException.