ComfyUI Node

Convert Any

Convert Any is a lie — it converts nothing, and that's the point

By hayde0096·Created about a year ago·Updated 8 months ago· 1
Convert Any
  • Any_input
  • Any_Output

Let's get the name out of the way: Convert Any doesn't convert anything. It takes whatever you plug into its single Any_input socket and hands it straight back out of Any_Output, byte for byte. The whole node is one function that returns its input. What it does do is more interesting than any conversion: it defeats ComfyUI's type checking, and that's occasionally exactly what you need.

Why a no-op node exists

ComfyUI refuses to connect a wire when the output type doesn't match the input type. Usually that's the safety net doing its job. But some nodes - the README specifically calls out sampler and scheduler inputs - expose picky type signatures, and occasionally you have a value that is the right thing and ComfyUI still won't let the wire land. Convert Any sits in the middle as a type adapter: its input and output are both typed * (the "any type" wildcard), so anything can connect into it and it can connect into anything.

The trick behind the wildcard is worth a sentence because it explains why the node works at all. ComfyUI's type matching is done with Python equality, and this pack's AnyType overrides __ne__ so it always compares equal to every other type. Every type is "the same" as *, which is how one socket can accept a MODEL, a CLIP, or a string without knowing which. It's the same technique pythongosssss and rgthree use across their packs, and it's a genuinely elegant hack - credit where due.

Using it

There's one setting worth knowing: the input is marked forceInput, which means you must wire something into it. There's no text box where you type a value; the socket insists on a connection. That's deliberate - it stops the node being a place where people stash stray constants.

The honest advice is to reach for this rarely, and only when a wire genuinely won't connect. The ComfyUI ecosystem has a live debate about exactly this kind of node: the "Anything Anywhere" movement of nodes that route any output to any input drew a well-known "Please stop using it" backlash because graphs where anything can plug into anything become impossible to debug. The counterargument - and it's real - is that a couple of type-stubborn nodes make no sense without an escape hatch. Convert Any is that hatch, not a habit.

Gotchas

  • It bypasses the type check, not reality. If the thing on the other end expects a sampler name string and you feed it a number, the wire will connect and then the workflow will error at run time. The node is a type adapter, not a type converter - the "Convert" in the name is pure marketing.
  • If your problem is that two different types need to become compatible (a tensor that needs to be an image, a string that needs to be an integer), this node won't help you. That needs a real conversion node.

Installing it

Part of the EasySettingpipes pack, so:

cd ComfyUI/custom_nodes
git clone https://github.com/hayde0096/Comfyui-EasySettingpipes

Restart ComfyUI, or just search "Easy Setting Pipes" in ComfyUI Manager. No dependencies beyond what ComfyUI already ships - a pure adapter, so there's nothing to download and nothing to break. Also skip the README's clone command, which points at a typo'd user-attachments URL; the repo lives at hayde0096/Comfyui-EasySettingpipes.

Keep it as the last tool in your belt, not the first. Nine times out of ten a wire won't connect because the types genuinely don't match, and the right answer is to fix the upstream node, not to paper over it with a wildcard.

Categoryeasy setting

Inputs (1)

NameTypeDefaultDescription
Any_inputopt*

Outputs (1)

NameTypeDescription
Any_Output*