asShort method

int asShort()

Implementation

int asShort() {
  if (this is ShortTag) {
    return (this as ShortTag).value;
  } else {
    return 0;
  }
}