Remove use of assert-type as type hints are already there. So a 'ClassCastException' will be thrown