Corrected casting to for %p formatting