title: how to cast thrust::device_vector<int> to raw pointer
body: <p>I have a thrust <code>device_vector</code>. I want to cast it to a raw pointer so that I can pass it to a kernel. How can I do so? </p>
  
  <pre><code>thrust::device_vector&lt;int&gt; dv(10);
  //CAST TO RAW
  kernel&lt;&lt;&lt;bl,tpb&gt;&gt;&gt;(pass raw)
  </code></pre>