Hacker News new | ask | show | jobs
by eridius 3462 days ago
Why would the compiler complain? Doing a narrowing type conversion is a perfectly legitimate thing to do. So when you ask the compiler to do it, it should.