---
title: "subscript(_:as:)"
framework: xpc
role: symbol
role_heading: Instance Subscript
path: "xpc/xpcarray/subscript(_:as:)-4xkvt"
---

# subscript(_:as:)

Get a value in this array as a UUID.

## Declaration

```swift
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

Return Value A UUID value or nil if no such value was found.
