4 ms·
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.
by steveklabnik 6y 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.