---
title: "shapedArrayValue(of:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlfeaturevalue/shapedarrayvalue(of:)"
---

# shapedArrayValue(of:)

Returns the underlying shaped array of the feature value.

## Declaration

```swift
func shapedArrayValue<Scalar>(of type: Scalar.Type) -> MLShapedArray<Scalar>? where Scalar : MLShapedArrayScalar
```

## Parameters

- `type`: The scalar type of the underlying shaped array.

## See Also

### Accessing the feature’s value

- [isUndefined](coreml/mlfeaturevalue/isundefined.md)
- [int64Value](coreml/mlfeaturevalue/int64value.md)
- [doubleValue](coreml/mlfeaturevalue/doublevalue.md)
- [stringValue](coreml/mlfeaturevalue/stringvalue.md)
- [imageBufferValue](coreml/mlfeaturevalue/imagebuffervalue.md)
- [multiArrayValue](coreml/mlfeaturevalue/multiarrayvalue.md)
- [sequenceValue](coreml/mlfeaturevalue/sequencevalue.md)
- [dictionaryValue](coreml/mlfeaturevalue/dictionaryvalue.md)
