toUInt

fun toUInt(): UInt

Returns element as UInt. For vector types, it will return size of the vector. For String type, it will type to be parsed as integer. Negative elements will become unsigned counterpart. Float elements will be casted to UInt

Return

UInt or 0 if fail to convert element to integer.