---
title: "view(as:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/ndarray/rawview/view(as:)"
---

# view(as:)

Consume this raw view to create a typed view.

## Declaration

```swift
consuming func view<T>(as: T.Type = T.self) -> NDArray.View<T> where T : BitwiseCopyable
```

## Discussion

Discussion note: T must match self.scalarType.type.
