# Drawstep engine · Conditions · `asCast` > As cast — CR 601.2i, 608.2h: the inner condition as it stood when this spell became cast ("if you controlled a Faerie as you cast this spell"); recorded as casting completes and kept by the permanent the spell becomes; false for an object that wasn't cast; a copy inherits it (CR 707.10). 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#asCast ## Where it goes A condition: `{ "kind": "asCast", … }` — 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 | |---|---|---|---| | `condition` | `ConditionDef` | yes | A ConditionDef that must hold | ## Minimal form ```json {"kind":"asCast","condition":{"kind":"isYourTurn"}} ``` The engine reads that minimal form as: “it's your turn as you cast this spell”. ## Stock examples - **Jaws of Stone** — “Jaws of Stone deals X damage divided as you choose among any number of targets, where X is the number of Mountains you control as you cast this spell.” ```json {"kind":"asCast","value":{"kind":"count","filter":{"subtypes":["Mountain"],"controller":"you"}}} ``` - **Lifestream's Blessing** — “Draw X cards, where X is the greatest power among creatures you controlled as you cast this spell. If this spell was cast from exile, you gain twice X life.” ```json {"kind":"asCast","value":{"kind":"aggregate","op":"max","property":"power","filter":{"types":["Creature"],"controller":"you"}}} ``` ## 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