I've come across the following issue with enumerations:

Code:
Public Enum Figures
        test1 = 1          
        test2 = 2      
End Enum          

Dim fig As Figures          

'this works fine (as it should)
fig = Figures.test1

'but this also works even though its not a valid enumeration value!
fig = 4
Can anyone explain why this is allowed to happen and if there is a way to prevent it?

Thanks