Add a cast to be able to extend the "enum"

This probably should be done differently, since the enumeration
only covers the standard wxID - everything else will be outside.