<?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>castType of boolean and number</title><link>https://community.appian.com/discussions/f/new-to-appian/22295/casttype-of-boolean-and-number</link><description>As title, I am trying to castType for sub-interface rule input saveInto local!variable in order to publish on site, I am trying to cast number and boolean into correct type, but as my code here is incorect,such as submit:toboolean() is incorrect,then</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: castType of boolean and number</title><link>https://community.appian.com/thread/87285?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:31:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eba3ec58-fef2-47b4-9f2d-9c9edf2e7ddf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;That is a super small example of an interface component with a rule input wrapped into another interface with local variables.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/enabling_user_interaction.html#rule-inputs"&gt;docs.appian.com/.../enabling_user_interaction.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: castType of boolean and number</title><link>https://community.appian.com/thread/87284?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:26:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:861a0ec3-521a-4759-84e8-8fa05615e307</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;The way to transfer boolean and integer type into local variable, which can let all other rule input of sub-interface be eliminated and let the main interface can put on site.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: castType of boolean and number</title><link>https://community.appian.com/thread/87283?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:24:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:04b8310b-134c-4fdc-a5e9-340399ea1dc7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I do not understand !&lt;/p&gt;
&lt;p&gt;You want to cast a boolean, and integer (???), into what exactly?&lt;/p&gt;
&lt;p&gt;After you read the documentation and toyed around with the example code in there, what ist your concrete question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: castType of boolean and number</title><link>https://community.appian.com/thread/87282?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:20:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7cd193f-aabd-4b96-a896-7c5f1e8e0834</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;of course it is not work, that is what i am asking, not being rude, what is the correct form cast boolean to appropriate type? The code in my rule is similar to as follow,which is work for that parts, but how to transfer boolean and integer to something similar to this? :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cast(
  &amp;#39;type!{urn:com:appian:types}KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_CDT&amp;#39;,
  a!queryEntity(
    entity: cons!KONE_Development_CSE_SERVICE_CATALOGUE_SUBTASK_Constant,
    query: a!query(
      pagingInfo: a!pagingInfo(
        startIndex: 1,
        batchSize: -1
      )
    )
  ).data
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: castType of boolean and number</title><link>https://community.appian.com/thread/87281?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 06:12:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51a979eb-f0bb-410b-aa78-753eeef8be7e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I don&amp;#39;t get it. Just calling toboolean() will never work because it needs a value that should be turned into a boolean.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/fnc_conversion_toboolean.html"&gt;docs.appian.com/.../fnc_conversion_toboolean.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>