toByteString package:massiv

O(n) - Convert any source array into a strict ByteString. In case when the source array is actually storable, no memory copy will occur.
O(1) - Cast a Storable array into a strict ByteString