> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# typecast

> Step function: typecast

## Input

<Tabs>
  <Tab title="v2">
    <table>
      <colgroup>
        <col width="210" />

        <col width="400" />

        <col width="90" />

        <col width="90" />
      </colgroup>

      <thead>
        <tr>
          <th>Field</th>
          <th>Description</th>
          <th>Type</th>
          <th>Required</th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td>`dataSource`</td>
          <td>Reference to the source data to cast.</td>
          <td>string</td>
          <td>Yes</td>
        </tr>

        <tr>
          <td>`fields`</td>
          <td>Definitions of the fields to cast.</td>
          <td>array</td>
          <td>No</td>
        </tr>
      </tbody>
    </table>
  </Tab>
</Tabs>

## Output

<Tabs>
  <Tab title="v2">
    <table>
      <colgroup>
        <col width="210" />

        <col width="400" />

        <col width="90" />

        <col width="90" />
      </colgroup>

      <thead>
        <tr>
          <th>Field</th>
          <th>Description</th>
          <th>Type</th>
          <th>Required</th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td>`data`</td>
          <td>The source data with fields cast to their target types.</td>
          <td>any</td>
          <td>Yes</td>
        </tr>
      </tbody>
    </table>
  </Tab>
</Tabs>
