> For the complete documentation index, see [llms.txt](https://wiki.thescriptersguild.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.thescriptersguild.com/scripting/nodes/lists-casts/cast-to-ui-message.md).

# Cast To UI Message

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-57645dba3636e0cc5309b41135cb743cf3c45aa5%2Fcast-to-ui-message.png?alt=media)

## Description

Converts a Generic Item to a UI Message. Incompatibility will result in invalid output.

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input        | Type | Required | Description                       |
| ------------ | ---- | -------- | --------------------------------- |
| Generic Item | Item | Yes      | Node sets this Item to it's Type. |

## Outputs

| Output         | Type       | Description                                       |
| -------------- | ---------- | ------------------------------------------------- |
| UI Message     | UI Message | The item outputs as this Type.                    |
| Cast Succeeded | Boolean    | True if the item successfully output as the Type. |

\
\
**Contributors**

AddiCt3d 2CHa0s
