title: VB.NET Byte Problem
body: <p>I am porting some c# code to vb.net, currently trying to figure out how to do this..</p>
  
  <pre><code>byte isEndReached = //get some data
  
  if (isEndReached != 0)
  {
     for (int y = 0; y &lt; isEndReached ; y++)
     {
       //do some stuff
     }
  
  }
  </code></pre>
  
  <p>My attempt:</p>
  
  <pre><code> Dim isEndReached As Byte = ''//getsomedata
   If Not isEndReached Is Nothing Then 
   For y As Byte = 0 To isEndReached - 1
       ''//do some stuff
   Next
   End If
  </code></pre>
  
  <p>Problem is I am getting the following error:</p>
  
  <p>'Is' operator does not accept operands of type 'Byte'. Operands must be reference or nullable types.</p>
  
  <p>How am I supposed to fix this?</p>
  
  <p>Thanks!</p>