ISSUE-10 Avoid casting issues for non-OWLEntity

(such as OWLObjectMaxCardinalityImpl)
Fixes https://github.com/irl/strigidoc/issues/10
Merge pull request #13 from stain/issue-10-owlobjectmaxcardinalityimpl

ISSUE-10 Avoid casting issues for non-OWLEntity