Check pointer type