Ino Cast Any To Model
Relabel any port as MODEL — a pass-through for stubborn wire mismatches
- input_any
- model
Here's the deal with this node: it does not transform anything. Ino Cast Any To Model takes whatever comes in on its input_any port and hands it back out labeled as a MODEL. The value is untouched - the cast is purely about the type declared on the port, not the data. Understanding that distinction is the whole article.
Why does a no-op node exist? Because ComfyUI's type system occasionally gets pedantic. Some nodes output a generic * (any) type that won't connect to a MODEL input even though you know it's a model, or a workflow assembled from mismatched node versions won't let the wire through. This node relabels the output as MODEL so the graph accepts the connection. It's plumbing, not magic.
The critical caveat
A relabel is a promise, not a guarantee. If the value coming in isn't actually a model object - say it's a string or a None from a disabled upstream node - this node will happily declare it a MODEL and let the graph run until the sampler crashes trying to use a string as a model. The cast is cosmetic; the runtime is not. Use it when you're sure of what's on the other end, not as a way to force a connection you're unsure about.
This is the same pattern across the whole CastAny family. Cast Any To String actually converts (that one is real), while the Model/Clip/VAE/Controlnet casts are all pass-throughs for type-label reasons. If you need an actual conversion to happen, grab the right tool.
Inputs and outputs
- input_any (
*) - whatever you're relabeling. - model (MODEL) - the same object, now typed as a MODEL for the wire.
Installing it
Part of ComfyUI-InoNodes (Inoland). ComfyUI Manager → search "ComfyUI Ino Nodes" → install → restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/nobandegani/comfyui_ino_nodes
cd comfyui_ino_nodes
pip install -r requirements.txt
Restart after. Requires inopyutils and a current ComfyUI (V3-style node API). No keys, no models, no downloads.
Common issues
The failure mode is always the same: you relabeled something that wasn't really a model, and it blows up downstream. Before you reach for the cast, check why the wire won't connect - often the real fix is a different node, an upstream rewire, or a ComfyUI update (the V3 API that this pack targets changed how some port types are declared). When the cast genuinely is the fix, treat it as the last resort in the toolbelt, not the first.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| input_any | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |