ISSUE-10 Avoid casting issues for non-OWLEntity

(such as OWLObjectMaxCardinalityImpl)
Fixes https://github.com/irl/strigidoc/issues/10