/// <summary>
        ///     Converts the value to <c>Boolean</c> using regular JavaScript semantics.
        /// </summary>
        /// <remarks>
        ///     Requires an active script context.
        /// </remarks>
        /// <returns>The converted value.</returns>
        public JavaScriptValue ConvertToBoolean()
        {
            JavaScriptValue booleanReference;

            Native.ThrowIfError(Native.JsConvertValueToBoolean(this, out booleanReference));
            return(booleanReference);
        }