Remove an unnecessary cast.

Remove an unnecessary cast since CPDF_PathObject is a sub class of
CPDF_PageObject.

Change-Id: Ibcb9d3bb24321d016484afdf377db392109d3b6f
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/70353
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Hui Yingst <nigi@chromium.org>
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index 18de03f..c025b83 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -128,8 +128,7 @@
     fill_options |= FXFILL_FULLCOVER;
   if (options.bNoPathSmooth)
     fill_options |= FXFILL_NOPATHSMOOTH;
-  if (static_cast<const CPDF_PageObject*>(path_obj)
-          ->m_GeneralState.GetStrokeAdjust())
+  if (path_obj->m_GeneralState.GetStrokeAdjust())
     fill_options |= FX_STROKE_ADJUST;
   if (is_stroke)
     fill_options |= FX_FILL_STROKE;