Cast and return object in geodb toJTS if its already a Geometry