<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCArray/subscript(_:as:)-4xkvt",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC8XPCArrayV_2ass5UInt8V_A15FtSgSi_AF_A15Ftmtcip"
  },
  "title" : "subscript(_:as:)"
}
-->

# subscript(_:as:)

Get a value in this array as a UUID.

```
subscript(index: Int, as type: uuid_t.Type = uuid_t.self) -> uuid_t? { get }
```

## Parameters

`index`

The index at which to get the UUID.

`type`

The expected type of the resulting value.

## Return Value

A UUID value or `nil` if no such value was found.

---

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)