asInt method

int asInt ()

For using this method, We're assuming it is safe to transform to utf8 Strings. Returns the bytes as am integer using int.parse()

Implementation

int asInt(){
  assert(_isStream != null && !_isStream);
  return int.parse(asString());
}