change: dynamic_cast on static_cast

	modified:   main.cpp