toInt method

int toInt()

Implementation

int toInt() {
  try {
    return pointer.address;
  } catch (e) {
    print("DivePointer exception $e");
    return 0;
  }
}