---
title: "ComputeNodeGraph.NodeDefinition.Kind.convert(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/convert(from:to:)"
---

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

Convert from one primitive MTLDataType to another.

## Declaration

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

## Discussion

Discussion Equivalent to calling Metal’s constructor of to with a value of type from
