Change the mutability of raw pointer