Any To LATENT 🔽
The type adapter for latent-space ordering
- any
- LATENT
Any To LATENT is one of the twenty type converters in the ComfyUI Telegram Suite. Its entire job: accept any input, declare the output a LATENT, pass the value through unchanged. It doesn't encode, doesn't VAE-anything, doesn't look at the data. It's a type label for ComfyUI's benefit, nothing more.
Why a LATENT converter exists
ComfyUI's strict type checking is the reason this whole converter family exists. The suite's trigger mechanism - forcing a node to run at a specific point by routing a dependency through it - passes signals through wildcard-typed (*) ports. After the trigger output, a * wire won't plug into a port expecting LATENT (like a sampler's latent input) without an explicit adapter. Any To LATENT is that adapter: wildcard in, LATENT-labeled out. The value is identical; only the declared type changes.
Practically speaking, you will almost never push an actual latent through a trigger. Latents are the intermediate currency of the sampling loop, and using one as an ordering signal would mean threading the sampler's own latent through an unrelated node. The realistic cases are: some other node handed you a * output that happens to be a latent and needs to reach a latent port, or you're deliberately routing a latent through a trigger for a reason that only your workflow knows. Both are rare, but when they happen, this is the tool - and there's nothing to configure.
The honest take
Of the "Any To" converters, this one is squarely in the "have it installed, rarely touch it" bucket, alongside the MODEL, CLIP, and VAE ones. The pack ships them all for completeness - the author designed one trigger system and generated one converter per ComfyUI type, so you never hit a missing case mid-workflow. That's actually the nice thing about the family: when you need one, it's there, identical in shape to every other.
Install
Shared pack install:
cd ComfyUI/custom_nodes
git clone https://github.com/SwissCore92/comfyui-telegram-suite.git
cd comfyui-telegram-suite
pip install -r requirements.txt
Or "ComfyUI Telegram Suite" from ComfyUI Manager. No extra downloads - the converter classes ship inside the pack. If you don't use triggers, you won't use this node, and that's the normal state of affairs.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| any | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |