toByteArray

Converts the value to a byte array representation.

Return

The byte array representation of the value.

Note: If the value type or kind is unsupported for this conversion, the method will throw an exception.