Is there are way to combine "is" and "as" in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7113347/c-assignment-in-an-if-statement">C# - Assignment in an if statement</a>  </p>
</blockquote>



<p>I find my myself doing the following multiple time</p>

<pre><code>if (e.row.FindControl("myLiteral") is Literal)
{
    (e.row.FindControl("myLiteral") as Literal).Text = "textData";
}
</code></pre>

<p>Is there way to replace the "if" part and simplify the setter:</p>

<pre><code>(e.row.FindControl("myLiteral") &lt;some operator that combines is and as&gt; .text = "textData";
</code></pre>

<p>EDIT:
I should have mentioned this before-
I want to remove the 'if' entirely.<br>
"some operator " should do this internally and set the ".text" only if e.row.FindControl is a literal</p>
