logoalt Hacker News

pjmlptoday at 2:27 PM0 repliesview on HN

To add on top of sibling comment, C style casts are too lose, and the main reason for the new C++ style casts is improved type safety.

So instead of anything goes, there is some additional type checking depending on the type of cast being made.