I guess its the default behavior. :/
You can turn that off in the Project Settings by turning on Option Strict in the Compile Tab.
If you want that behaviour depending on Debug or Release Mode, not depending on Project Settings.
add this to the beginning of your files
#If DEBUG Then
Option Strict Off
#Else
Option Strict On
#End If
Be sure to have DEBUG-Constant enabled in enhanced Compile Options