toUByte

fun toUByte(): UByte

Returns element as UByte. 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 UByte

Return

UByte or 0 if fail to convert element to integer.