toInt method

int toInt()

converts to int

Implementation

int toInt() => tryToInt() ?? toNum().toInt();