Here's a cheap, bad, hack
Code:
memcpy((char*)array, (char*)codeguru, 2*sizeof(int))
Why do you want to refer to the data in bytes? Both are ints already.
No need to change to a different data type.

Code:
for( int i=0; i<2; i++)
    codeguru[i] = array[i]