title: Is using "as" in C# a safe way of casting?
body: <p>I am wondering if using the keyword "as" in the following code is a safe way (i.e. won't blow up) of casting in C#:</p>
  
  <pre><code>public void abc(ref Object dataSource)
  {
      DataTable table = dataSource as DataTable;
  }
  </code></pre>
  
  <p>Is there a safer way of casting?</p>