toIntArray

Returns element as a IntArray, converting scalar types when possible.

Return

element as IntArray or empty IntArray if fail.