Replace the two C-stle casts in the .h