# compiler: allow cast builtins to coerce result to error union or optional · gitcafe/zig

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

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

Visibility: public

Requested revision: 569ae762e1025f83ae7d2c6ae2ca6b015b289991

Requested commit: 569ae762e1025f83ae7d2c6ae2ca6b015b289991

Commit: 569ae762e1025f83ae7d2c6ae2ca6b015b289991

Tree: 77c104934f7d621375b047cfc1728628a3abacbc

Author: mlugg

Committer: mlugg

## Message

```
compiler: allow cast builtins to coerce result to error union or optional

Also improves some error messages

```

## Parents

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

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