PDFBOX-1094: add cast forgotten in previous commit; replace getBounds2D() that doesn't work for negative values.

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1618367 13f79535-47bb-0310-9956-ffa450edef68