can't you say... memcpy(&_position, dataPtr, sizeof(_position));