title: How to correctly cast time_t to long int?
body: <p>I'm still learning about type casting in C++ and I'm currently doing this</p>
  
  <pre><code>long int t = time(NULL);
  </code></pre>
  
  <p>I'm using VS2013 and noticed the conversion from 'time_t' to 'long' warning so I thought I would type cast it to look like;</p>
  
  <pre><code>long int t = static_cast&lt;long int&gt; time(NULL);
  </code></pre>
  
  <p>However this doesn't work yet combining a static cast and a C-style cast works</p>
  
  <pre><code>long int t = static_cast&lt;long int&gt; (time(NULL));
  </code></pre>
  
  <p>I was just wondering if anyone could help shed some light on this?</p>