// ToUint16Checked attempts to cast the Int64 to a Uint16.
// The second return value will be false if there was an overflow or any other loss of precision.
// For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
ToUint16Checked attempts to cast the Int64 to a Uint16.
The second return value will be false if there was an overflow or any other loss of precision.
For example, going from Float64 to Int64 will result in anything after the decimal being truncated.
// ToUint16Checked attempts to cast the Int64 to a Uint16 . // The second return value will be false if there was an overflow or any other loss of precision . // For example going from Float64 to Int64 will result in anything after the decimal being truncated .
func (t Int64) ToUint16Checked() (Uint16, Boolean) {
	var converted Uint16
	converted = Uint16(t)
	v, err := converted.ToInt64().Eq(t)
	return converted, Boolean(err == nil && v)
}
func ( t Int64 ) ToUint16Checked ( ) ( Uint16 , Boolean ) { var converted Uint16 converted = Uint16 ( t ) v , err := converted . ToInt64 ( ) . Eq ( t ) return converted , Boolean ( err == nil && v ) }
ToUint16Checked attempts to cast the Int64 to a Uint16.
ToUint16Checked attempts to cast the Int64 to a Uint16 .