Add overload for non-const pointer.