Coerces element to an Int by routing through asString then toIntOrNull, returning null when the string is not a valid integer representation.
Int
toIntOrNull
null
the value as an Int, or null when not parseable as an integer.
the value to coerce; may be null.