when isMainModule:
    var test = cast[array[4, int8]](64)
    var test1: array[4, int8]
    echo test
    bigEndian64(addr test1, addr test)
    echo test1

expected output when echoing test1:

[0,0,0,64]

actual output:
[0,0,0,0]

Add a code snippet to your website: www.paste.org