change type of pointer