asInt method

int asInt()

Implementation

int asInt() {
  if (this is IntTag) {
    return (this as IntTag).value;
  } else {
    return 0;
  }
}