System.Xml.Serialization.CodeGenerator.Castclass C# (CSharp) Method