ComfyUI Node

Type Caster

Converts an input value to a target type (STRING, INT, FLOAT, BOOLEAN). On failure, returns the specified default value.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
Type Caster
  • value
  • default_value
  • casted_value
◄target_type▾►
CategoryParametric/Flow

Inputs (3)

NameTypeDefaultDescription
valueANYValue.
target_typeCOMBOTarget type. One of 4 choices.
default_valueANYDefault value.

Outputs (1)

NameTypeDescription
casted_valueANY—