Int2Any_AS
The tiny adapter that makes an integer fit an ANY socket
- *
Int2Any_AS is the kind of node you don't think about until a wire won't plug in, and then it saves your workflow. It takes an INT on the left and outputs * - ComfyUI's "any" type - on the right. That's the entire job. One input, one output, zero configuration.
It comes from flyingshutter's As_ComfyUI_CustomNodes pack, a dependency-free personal toolkit (the author calls it a playground, so expect bare-bones utilities like this one).
Why this node exists
ComfyUI's type system is strict: an INT output won't connect to a FLOAT input or a STRING input or a model input. But some sockets are declared as * (ANY), meaning they'll accept data of any type - and those sockets sometimes refuse an INT because the type system still has to reconcile the connection. Int2Any_AS sidesteps that by declaring its output as *, so it can plug into anything that accepts ANY. The integer value passes through completely unchanged; the node is purely a type adapter.
How it works
The source is a single passthrough: value goes in, value comes out, with the output type declared as * instead of INT. The value itself is never touched, converted, or rounded. If the downstream node expects a number, it receives the number.
When you'd actually use it
- Wiring an integer seed or step count into a node that takes an ANY/primitive input and is being picky about connections.
- Any custom node with a loose
*port where you need to force an integer through without ComfyUI complaining about the mismatch. - Building a workflow from someone else's template where the original used a "convert anything to any" shim and you don't have that pack installed.
Honestly, most of the time you won't need it - a plain INT output usually connects to an ANY port fine on its own. But when a connection is refused and the reason is type matching, this is a two-second fix that requires installing nothing extra.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/flyingshutter/As_ComfyUI_CustomNodes
Restart ComfyUI and it's under ASNodes (ComfyUI Manager: search "As_ComfyUI_CustomNodes"). No requirements.txt, no model downloads, no extra dependencies.
Common issues
There's not much to break in a passthrough node, so issues are mostly about expectation. First, * output doesn't magically convert the value - if a downstream node truly needs a float or a string, this node won't fix that; it only fixes type-socket matching, not value types. Second, not every ANY socket is willing to accept an * output, depending on how the receiving node declares its inputs - in those cases you need a converter like Number2Float_AS or Number2Int_AS from this same pack instead. And third, if you're connecting into a normal typed socket (say, a FLOAT input), this node won't help - the socket is strict regardless.
For a utility this small, the lesson is: it's a wire adapter, not a converter. Keep that straight and it'll quietly save you whenever type matching gets fussy.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |