Converts a Uint8Array into an array of native types.
The Uint8Array to convert.
The typed array unit type.
An array of converted native types.
This function is inspired by https://github.com/AssemblyScript/assemblyscript/blob/main/std/assembly/array.ts#L69-L81
Converts a Uint8Array into an array of native types.