Use `IndexDatatype.createTypedArray` here in case we need a `Uint32Array`.