title: What is the difference between using the colon and as syntax for declaring type?
body: <p>What is the difference between the <code>:</code> syntax for declaring type</p>
  
  <pre><code>let serverMessage: UServerMessage = message;
  </code></pre>
  
  <p>and the <code>as</code> syntax</p>
  
  <pre><code>let serverMessage = message as UServerMessage;
  </code></pre>
  
  <p>They seem to produce the same result in this example at least</p>