Creates an integer from another integer wrapped in a data value.
SDKs
- macOS 10.14+
- Xcode 10.0+
Framework
- Create ML
Declaration
init?(from dataValue: MLData Value)
Discussion
Use this initializer to create an integer by converting an MLData with an underlying type of Int. You can confirm the data value’s underlying type by retrieving a non-nil value from int or by inspecting the type property.