<?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>Using cast() to array of local variables</title><link>https://community.appian.com/discussions/f/new-to-appian/23756/using-cast-to-array-of-local-variables</link><description>Hi, 
 Below is the code which I used from Appian exercise, which should return all the 3 data from the data store stored in local variable but it is returning on 1 data 
 a!localVariables( local!queryResults: a!queryEntity( entity: cons!ADV_DSE_ADDRESS</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Using cast() to array of local variables</title><link>https://community.appian.com/thread/91276?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 14:02:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6065af6b-0980-42c7-ab7b-e4bb4c6c8008</guid><dc:creator>reshman0003</dc:creator><description>&lt;p&gt;Thank You.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using cast() to array of local variables</title><link>https://community.appian.com/thread/91275?ContentTypeID=1</link><pubDate>Sat, 19 Feb 2022 12:42:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:831e602b-b602-4332-a375-c18d2dd3f41e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Add the &amp;quot;?list&amp;quot; suffix to your type. Also, reference the type directly instead of creating a data structure of the type and then detect the type of it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  &amp;#39;type!{urn:com:appian:types:ADV}ADV_address?list&amp;#39;,
  local!queryResults
)
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>