# stage1: AstNodes cannot be casted, but are rather accessed via a union\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4188faeac56d9c022fa33449aa4283b1f55395cf)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4188faeac56d9c022fa33449aa4283b1f55395cf

Requested commit: 4188faeac56d9c022fa33449aa4283b1f55395cf

Commit: 4188faeac56d9c022fa33449aa4283b1f55395cf

Tree: 08c4597b591291362921fa705ce114175de65f05

Author: Shawn Landden

Committer: Andrew Kelley

## Message

```
stage1: AstNodes cannot be casted, but are rather accessed via a union.

Unlike IrInstruction[Foo]s, which all start with:
    IrInstruction base;
AstNodes do not work like this, and instead use a pointer to their
specializations. The code assumed otherwise.

```

## Parents

- [4e1f3a9ba35530f129e43e11ac0676c562e4cb98](https://git.cafe/gitcafe/zig/commit/4e1f3a9ba35530f129e43e11ac0676c562e4cb98?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4188faeac56d9c022fa33449aa4283b1f55395cf?format=markdown)
