Change non const reference type parameters to pointer type