# GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*">explicit operator Operator
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Boolean" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Boolean">explicit operator bool(Variant)</h4>
<div class="markdown level1 summary"><p>Converts given Variant to boolean.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator bool(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns <code>true</code> if:
<ul><li> the Variant is boolean 'True';</li><li> the Variant is numeric non-zero;</li><li> the Variant is string represents numeric non-zero value;</li><li> the Variant is string other than 'False';</li><li> the Variant is TimeSpan other than TimeSpan.Zero;</li><li> the Variant is DateTime other than default(DateTime);</li><li> the Variant is object other than <code>null</code>.</li></ul>
Returns <code>False</code> in all other cases.
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Int32" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Int32">explicit operator int(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator int(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Int64" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Int64">explicit operator long(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator long(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_UInt64" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.UInt64">explicit operator ulong(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint64">ulong</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator ulong(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint64">ulong</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Double" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Double">explicit operator double(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator double(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Single" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Single">explicit operator float(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator float(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_Decimal" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.Decimal">explicit operator decimal(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator decimal(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_String" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.String">explicit operator string(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator string(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_DateTime" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.DateTime">explicit operator DateTime(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator DateTime(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant_op_Explicit_GrapeCity_Enterprise_Data_Expressions_Evaluation_Variant__System_TimeSpan" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.op_Explicit(GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant)~System.TimeSpan">explicit operator TimeSpan(Variant)</h4>
<div class="markdown level1 summary"><p>Converts Variant value to <span class="xref">GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.TimeSpan</span>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static explicit operator TimeSpan(Variant v)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.Variant.html">Variant</a></td>
      <td><span class="parametername">v</span></td>
      <td><p>The Variant to be converted.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
