fix #4

std::runtime_error is thrown if the dynamic_cast operator returns nullptr.
Documentation of the methods has been regenerated.