title: Implicit conversion loses integer precision: 'long long' to 'NSInteger' (aka 'int')
body: <p>I am trying to assign a variable with type 'long long' to a type NSUInteger, What is the correct way to do that?</p>
  
  <p>my code line:</p>
  
  <pre><code>expectedSize = response.expectedContentLength &gt; 0 ? response.expectedContentLength : 0;
  </code></pre>
  
  <p>where <code>expectedSize</code> is of type NSUInteger and return type of <code>response.expectedContentLength</code> is of type '<code>long long</code>'. The variable <code>response</code> is of type <code>NSURLResponse</code>.</p>
  
  <p>The compile error shown is:</p>
  
  <blockquote>
    <p>Semantic Issue: Implicit conversion loses integer precision: 'long
    long' to 'NSUInteger' (aka 'unsigned int')</p>
  </blockquote>