title: C# byte array to fixed int pointer
body: <p>is it possible to somehow cast the type of a pointer created by the fixed() statement?</p>
  
  <p>This is the situation:</p>
  
  <p>I have an array of byte, which i would like to iterate through, however i would like the values to be treated as int, thus having an int* instead of a byte*.</p>
  
  <p>Here's some exemplary code:</p>
  
  <pre><code>byte[] rawdata = new byte[1024];
  
  fixed(int* ptr = rawdata) //this fails with an implicit cast error
  {
      for(int i = idx; i &lt; rawdata.Length; i++)
      {
          //do some work here
      }
  }
  </code></pre>
  
  <p>Can this be done without having to do the cast inside the iteration?</p>