asLong method

int asLong()

Implementation

int asLong() {
  if (this is LongTag) {
    return (this as LongTag).value;
  } else {
    return 0;
  }
}