# As

`import { As } from "destack:convert";`

Interface for reference conversion.

`A` selects the access form required by the conversion.

```ds title="As"
export newtype interface As<T, const A: Access = "readonly"> {
    as(): WithAccess<&T, A>;
}
```

[language/library/src/convert/reference.ds:7:10](https://github.com/destack-sh/destack/blob/main/language/library/src/convert/reference.ds#L7-L10)

## Members

### `as(): WithAccess<&T, A>`

Borrow this value as `T`.
