Hacker News new | ask | show | jobs
by steveklabnik 2163 days ago
For this one, you could use From/Into, because it cannot fail. For numerics that can fail, TryFrom/TryInto.

The numeric casts are the easy part of this.