Convert bytes to array