---
title: "init(from:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mldatavalue/sequencetype/init(from:)"
---

# init(from:)

Creates a data-value sequence from another sequence.

## Declaration

```swift
init?(from dataValue: MLDataValue)
```

## Discussion

Discussion Use this initializer to create an MLDataValue.SequenceType from another data-value sequence instance. You can confirm the data value’s underlying type by retrieving a non-nil value from sequenceValue or by inspecting the type property.
