---
title: "cast to user · RUAL Documentation"
description: "Converts an object type to an user object type."
canonical: https://docs.rual.nl/block-types/users/object_convert_to_user
language: en
---

# cast to user

This block is part of the [`users`](https://docs.rual.nl/block-types/users) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Converts an object type to an user object type.

- User required `object`

- user `user`

A typical wiring for [cast to user](https://docs.rual.nl/block-types/users/object_convert_to_user): [search single](https://docs.rual.nl/block-types/storage/function_search_single_result) feeds the `user` pin; the `user` out pin feeds [get fields](https://docs.rual.nl/block-types/users/user_field_getter_multiple).

![Studio canvas example for the cast to user block: typical wiring for cast to user.](https://docs.rual.nl/canvas-examples/object_convert_to_user.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [search single](https://docs.rual.nl/block-types/storage/function_search_single_result): feeds into this block. searches in the given storage based on a query and returns maximum one result.

- [get fields](https://docs.rual.nl/block-types/users/user_field_getter_multiple): this block feeds into it. Gets the given fields from user data and returns this per data-pin.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).
