static_cast타입을 변경할 때 상식정인 캐스팅만 허용된다. Ex)1) int float 등2) Parent* -> Sun* (다운캐스팅) 안전성은 보장하지 않는다. 아래 코드에서 보면 sun2 또 한 parent를 상속받기 때문에 parent로 캐스팅되고이 parent를 static_cast를 사용하여 sun1으로 캐스팅이 되지만 서로 설계한 매개변수가 다르기 때문에 잘 못 된 메모리를 접근할 수 있다.class Parent{};class Sun1 : public Parent{};class Sun2 : public Parent{};int main(){ int hp = 100; int maxHp = 200; float ratio = static_cast(hp / maxHp); cout (pare..