getInt

fun getInt(): Int?

Returns the contained value as an Int if the contained value is an Int, or a Number that can be coerced to an Int.

If value is a Double or Long then the returned value will possibly lose accuracy as a result.

Return

value as an Int; else converted to an Int if possible; else null