[PD-dev] pointer cast fix