toLongOrNull

Returns this value as a Long, or null if it does not fit in one.