delete unnecessary pointer cast