asByte method

int asByte()

Implementation

int asByte() {
  if (this is ByteTag) {
    return (this as ByteTag).value;
  } else {
    return 0;
  }
}