> For the complete documentation index, see [llms.txt](https://appmaster.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appmaster.gitbook.io/docs/business-logic/block/logic/type-conversion.md).

# Type Conversion

Converts a value to a certain data type.

{% embed url="<https://youtu.be/hHIhokumvvk>" %}

| Block                                                                                                                            | Accepted Data Types                                              |
| -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| To Integer                                                                                                                       | Float, Boolean, String                                           |
| To Float                                                                                                                         | Integer, Boolean, String                                         |
| To String                                                                                                                        | Numeric, Password, Email, Text, Phone Number                     |
| To Text                                                                                                                          | Numeric, Password, Email, String, Phone Number                   |
| To Array                                                                                                                         | Any                                                              |
| To JSON                                                                                                                          | Any                                                              |
| To [Base64](https://golangbyexample.com/base64-complete-guide/amp/)                                                              | Any                                                              |
| From [Base64](https://golangbyexample.com/base64-complete-guide/amp/)                                                            | [Base64](https://golangbyexample.com/base64-complete-guide/amp/) |
| To Email                                                                                                                         | String, Text                                                     |
| Date & Time to String ([format guide](/docs/business-logic/block/logic/type-conversion/date-and-time-to-string-format-guide.md)) | Date & Time, Date, Time, Time Span                               |

### Flow Connections <a href="#flow-connections" id="flow-connections"></a>

* \[Input] In - starts the block's execution.
* \[Output] Out - activates when the block has finished its execution.

### Data Connections <a href="#data-connections" id="data-connections"></a>

* \[Input] Value (depends on the block) - value to be converted.
* \[Output] Result (depends on the block) - result of the operation.
