/// <summary> /// Retrieves a <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; IeJsErrorHelpers.ThrowIfError(IeNativeMethods.JsBooleanToBool(this, out value)); return(value); }