title: Unsigned Long Long from Double in Swift
body: <p>I used to use the following in Objective-C:</p>
  
  <pre><code>double currentTime = CFAbsoluteTimeGetCurrent();
  
  // self.startTime is called before, like     
  // self.startTime = CFAbsoluteTimeGetCurrent();
  
  double elapsedTime = currentTime - self.startTime;
  
  // Convert the double to milliseconds
  unsigned long long milliSecs = (unsigned long long)(elapsedTime * 1000);
  </code></pre>
  
  <p>In my swift code I have at the moment:</p>
  
  <pre><code>let currentTime: Double = CFAbsoluteTimeGetCurrent()
  let elapsedTime: Double = currentTime - startTime
  
  let milliSecs: CUnsignedLongLong = elapsedTime * 1000
  </code></pre>
  
  <p>However I get the error that a <code>double</code> cannot be converted to a <code>CUnsignedLongLong</code> which makes sense. Is there a way to cast it like in Objective-C though? Is there a way around this?</p>