<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I have a problem with the Cast Function</title><link>https://community.appian.com/discussions/f/general/10979/i-have-a-problem-with-the-cast-function</link><description>Hi team, 
 
 I have a problem with the Cast Function, the problem is &amp;quot;Expression evaluation error at function &amp;#39;cast&amp;#39; parameter 1 [line 3]: Invalid Type: {http://www.appian.com/examples/SucursalesWS}NewDataSet&amp;quot; . But i have a CDT with the same nameSpace</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/62701?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:59:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c1d59b5-d5af-41b0-b230-5e8ad85e44bb</guid><dc:creator>Ashvin Kapur</dc:creator><description>Hey Jerry - I think we solved this on another thread - use {} around your type! to cast to an array.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/62699?ContentTypeID=1</link><pubDate>Thu, 15 Nov 2018 15:54:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:352f17ab-eb47-4e74-965d-74307c06aa6b</guid><dc:creator>Jerry Sylveus</dc:creator><description>I don&amp;#39;t have any mismatch errors, it&amp;#39;s just returning one dictionary from the datasubset, instead of returning all of them when the cast is applied that&amp;#39;s all.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48058?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 12:39:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:28b45630-797b-457d-8f3b-f0f1a5eb6c02</guid><dc:creator>subhajits</dc:creator><description>Use like this--- &lt;br /&gt;
cast(typeof(type!Typeofyourcdt),local!value)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48045?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 10:59:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:47506b64-6e62-4095-beed-9ec6c95cadd0</guid><dc:creator>sureshg57</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
When you are trying to cast to a type(cdt) make sure that the structure of both is same and having same datatype in the same order. Otherwise you will get cast mismatching errors. If you can provide the sample code we will be able to pin pint exactly where the problem is in your code.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Suresh&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48043?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 10:50:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d856dba4-e17b-4c9a-adf5-d750736d23db</guid><dc:creator>sravanis</dc:creator><description>Hi moisesfelipet,&lt;br /&gt;
please go through this below link,&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/17.3/fnc_informational_cast.html"&gt;docs.appian.com/.../fnc_informational_cast.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48019?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 02:04:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4cd9f99f-f108-4920-9bbf-07766c06ce3a</guid><dc:creator>venkateshs329</dc:creator><description>AFAIK local!value has what type of data whether it has CDT Fields values or not . if it is yes for simple testing purpose find the CDT Type number and pass to cast function. Ex: cast(103,local!value)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48009?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 19:53:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f4ed88d-0603-422a-a03f-37cd2ad76f75</guid><dc:creator>moisesfelipet</dc:creator><description>Hi &lt;a href="/members/rameshg73"&gt;Ramesh Gudipati&lt;/a&gt; i tried to this form but i have a text type response, and i would like a newdata type response&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48008?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 19:45:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2949e46c-7606-4306-8d78-241166129dab</guid><dc:creator>moisesfelipet</dc:creator><description>Hi &lt;a href="/members/rajendray"&gt;Raj Yadla&lt;/a&gt;, yes i passing cast(&amp;#39;type!{&lt;a&gt;www.appian.com/.../SucursalesWS}NewDataSet&amp;#39;,local!callWS)&lt;/a&gt;, but But I get the above error back&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48007?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 19:44:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09f954ff-f6f0-4222-9567-46b2c6569399</guid><dc:creator>Ramesh Gudipati</dc:creator><description>&lt;a href="/members/moisesfelipet"&gt;moisesfelipet&lt;/a&gt;  Try as below cast(typeof(&amp;quot;{&lt;a&gt;www.appian.com/.../SucursalesWS}NewDataSet&amp;quot;),value)&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a problem with the Cast Function</title><link>https://community.appian.com/thread/48006?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 19:36:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9fceb078-e8cc-4039-93f1-bb22c5091dfe</guid><dc:creator>Raj Yadla</dc:creator><description>Are you passing the first parameter for the cast using the type! like this ? cast(&amp;#39;type!{&lt;a&gt;www.appian.com/.../SucursalesWS}NewDataSet&amp;#39;&lt;/a&gt;, local!value)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>