/// <summary> /// Retrieves the <c>bool</c> value of a <c>Boolean</c> value. /// </summary> /// <remarks> /// Requires an active script context. /// </remarks> /// <returns>The converted value.</returns> public bool ToBoolean() { bool value; Native.ThrowIfError(Native.JsBooleanToBool(this, out value)); return(value); }