asBool method

bool asBool ()

For using this method, We're assuming it is safe to transform to utf8 Strings. Returns the bytes as a boolean using string comparison

Implementation

bool asBool(){
  assert(_isStream != null && !_isStream);
  return asString() == "true";
}