toLongOrNull

Returns content as long only if content can be long, otherwise null.