# Drawstep engine · Conditions · `castWith` > Cast with — The source spell was cast with this alternative cost (blitz, dash, …). Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/conditions#castWith ## Where it goes A condition: `{ "kind": "castWith", … }` — in an `if` effect, a trigger's `condition` (intervening if), a static's `condition` ("as long as"), an activated ability's `onlyIf`, a replacement's `unless`. ## Fields | Field | Type | Required | Description | |---|---|---|---| | `alternative` | `string` | yes | The alternative or additional cost the spell was cast with (a keyword ability id: `alternativeCost`, `flashback`, `evoke`, `dash` …) | ## Minimal form ```json {"kind":"castWith","alternative":""} ``` The engine reads that minimal form as: “its cost was paid”. ## Stock examples - **Escape Witness** — “This creature escapes with two +1/+1 counters on it.” ```json {"kind":"castWith","alternative":"escape"} ``` - **Glimpse the Cosmos** — “” ```json {"kind":"castWith","alternative":"alternativeCost"} ``` ## Related - [Conditions](https://drawstep.xyz/wiki/mtg/conditions.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive