Let's you convert input to an int type if possible, or returns null if the conversion cannot be performed.
input
null
int? letIntOrNull(dynamic input) { return letNumOrNull(input)?.toInt(); }