<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDValue/unsafeValue(assumingType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDValueV11unsafeValue12assumingTypexxm_tAA0B8ProtocolRzlF"
  },
  "title" : "unsafeValue(assumingType:)"
}
-->

# unsafeValue(assumingType:)

Returns the wrapped value as `T` without checking the dynamic type.

```
func unsafeValue<T>(assumingType type: T.Type = T.self) -> T where T : USDValueProtocol
```

## Discussion> Important: The behaviour is undefined when `T` does not match the
> stored type. Prefer ``doc://com.apple.usdkit/documentation/USDKit/USDValue/value(as:)`` unless you have already confirmed
> the type with ``doc://com.apple.usdkit/documentation/USDKit/USDValue/isHolding(_:)``.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)