toLong

fun toLong(): Long

Gets the value as a Long.

Throws

if the value doesn't fit in a Long.