Parses the dynamic value into a int. The value may be a String, int, double.
value
static int parseInt(dynamic value) => parseDouble(value).toInt();