use AssertInterface::typeOf for type assertions