Encryption Key by combining uint32_t and byte array

Not sure if by "original example" you mean the example code I posted. But, my interpretation of this clause from the same reference indicates that it's valid. Meaning that you can dereference the byte pointer in your code (argument to printf() in my example) and not just as an argument to memcpy.