---
title: "value(as:)"
framework: USDKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdvalue/value(as:)"
---

# value(as:)

Returns the wrapped value if it is of type T, otherwise nil.

## Declaration

```swift
func value<T>(as type: T.Type = T.self) -> T? where T : USDValueProtocol
```
