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

# shapedArrayValue(of:)

Returns the shaped array value, if the contained value is a shaped array of the specified type.

## Declaration

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