Removed print statement and fixed compile error
Switched from casting to a union of pointers