is this going to work in all cases? What if the idl was defined with types in camel case?