Convert binary to array.