title: VB Compiler Conversion from string to number
body: <p>This is more of a curiosity question on what the VB compiler is doing. Basically the following code generates an error, </p>
  
  <pre><code>    If "String" = CInt(1) Then
  
      End If
  </code></pre>
  
  <p>As it should. What makes me curious is the error reported is </p>
  
  <pre><code>Conversion from string "String" to type 'Double' is not valid.
  </code></pre>
  
  <p>So, I guess my question is, why is the compiler attempting to convert to a Double when i would assume it should be converting to Integer? </p>