Use typedarray-to-buffer for more efficient buffer conversion