Can you pull this out into a named utility function for converting a typed array to a JS array?