VB Code:
  1. Dim decValue as Decimal = cDec(2^3+2^4+2^2+2^0)
  2.  
  3. If DecValue = (decValue And 2^4) Then
  4.       'Fifth bit set
  5.       Msgbox "Bit 5 is set"
  6. End if

This gives me a conversion error with Option Strict On

Do bitwise operators only work with Longs??