Note that I had to use vec because your A is actually a 1x8 matrix, not a vector. Storing A as a vector (using commas instead of spaces as delimiters) would remove that issue.
Note also that this gives the wrong answer, presumably because you are expecting a different endianness. Using ntoh fixes that: