Rule of thumb: In the "Script Functoids - Inline C#" use only string types as the input and output parameters. How it works: If the C# method in the Script Functoids - Inline C# has non-string parameter, it will be converted to the string on the "border" of this functoid! Take in mind that the "real" type for Xml elements is "string", no matter how it is defined in the Schema. XML Schema primitive types define how strings should be transformed into other types on the borders, by serialization and ......