intOrNull

open infix fun intOrNull(value: Int): T?

Returns the value as a type T, or returns null if it fails.