---
title: "ComputeNodeGraph.NodeDefinition.Kind.reinterpret(from:to:)"
framework: Compute Graph
role: symbol
role_heading: Case
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "computegraph/computenodegraph/nodedefinition/kind-swift.enum/reinterpret(from:to:)"
---

# ComputeNodeGraph.NodeDefinition.Kind.reinterpret(from:to:)

Reinterpret one type scalar or vector type as another of the same number of size and bytes.

## Declaration

```swift
case reinterpret(from: ComputeNodeGraph.DataType, to: ComputeNodeGraph.DataType)
```

## Discussion

Discussion Equivalent to calling Metal’s as_type<>
