title: Type of array index in C#?
body: <p>What is the type of an array index in C#?</p>
  
  <p>For example, in the code below, would the index be cast in an int before accessing the array element (third line)?</p>
  
  <pre><code>T[] myArray = new T[255];
  byte index = 2;
  T element = myArray[index];
  </code></pre>
  
  <p>If not, is it faster to access an array element by using an index of type 'byte' than an index of type 'int'?</p>
  
  <p>Thanks</p>