Allow conversion of codes/types/properties to int
This removes the need of suffixing .value
when we need the numeric
value of an evcode, which is virtually all the time.
This removes the need of suffixing .value
when we need the numeric
value of an evcode, which is virtually all the time.