ControlCode now generated

Simple cast works best in .NET bindings