Skip to content

Cast to Struct Node

Structs

Checks a struct against the shape of another struct and hands it on carrying that shape

struct_cast_to_structstd
Inputs3
Outputs4
Security exposure10/10
Packagestd

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
10/10High
PrivacyPotential sensitivity of processed data.
10/10High
PerformanceRuntime or resource pressure.
10/10High
GovernancePolicy, audit, or compliance impact.
10/10High
ReliabilityOperational stability considerations.
10/10High
CostExternal or compute cost impact.
10/10High

Input Pins

3

In

Execution
exec_in

Run the cast

Struct

Struct
struct_in

The struct to cast. Whatever schema it arrives with is ignored

objectobject0 fields
No named fields in this schema.

Shape

Struct
struct_shape

A struct of the shape to cast to. Only its schema is read — its value is never evaluated

objectobject0 fields
No named fields in this schema.

Output Pins

4

Success

Execution
exec_out

The value fits the shape

Struct

Struct
struct_out

The same value, now declaring the target shape

objectobject0 fields
No named fields in this schema.

Failed

Execution
error

The value does not fit the shape

Reason

String
error_message

What did not fit, naming the field

Node Info

Internal name
struct_cast_to_struct
Category
Structs