toIntOrNull

Returns this value as an Int, or null if it does not fit in an Int.