Object Casting in C#
<p>what is the difference as well as the pros and cons between </p>

<pre><code> LinkButton lb = (LinkButton)ctl;
</code></pre>

<p>and</p>

<pre><code> LinkButton lb = ctl as LinkButton;
</code></pre>

<p>I tried using the first one and it gives me error,
then I tried the other one with the keyword as, it work just fine.</p>

<p>Thank You in Advance.</p>
