Just a few notes.
You should really not be using type cast for changing between reference types. The To More Specific Class node would be better. This does compile time checking to make sure that the cast is at least to a related class and allows error io handling at run time. In this case it makes it trivial to remove the control name assumptions from the code.
By using the staticly bound control reference as the type input, the reference created is strictly typed. This means it not only restricts to digital numerics but also to double precision digital numerics. Using the class specifier constant allows you to make the code generic to a digital numeric with any representation.
If you do want to handle multiple types of controls, you can also select between different types with the Class Name property. You can then have one case structure to handle as many classes as you want. One note on this is the class name will always be the most specific class. So if you want to do something to all numerics, you actually have to look for "Digital", "Enum", "Ring", "ColorRamp", "Slide" and "Knob". You'll just have to decide if listing these 6 classes makes your code more understandable than doing a To More Specific Class on Numeric. It probably depends on how many other control classes you want to handle.
Message Edited by GregR on 05-31-2007 09:50 AM