// ToUint8Checked attempts to cast the Int64 to a Uint8.
// 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.
ToUint8Checked attempts to cast the Int64 to a Uint8.
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.
// ToUint8Checked attempts to cast the Int64 to a Uint8 . // 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) ToUint8Checked() (Uint8, Boolean) {
	var converted Uint8
	converted = Uint8(t)
	v, err := converted.ToInt64().Eq(t)
	return converted, Boolean(err == nil && v)
}
func ( t Int64 ) ToUint8Checked ( ) ( Uint8 , Boolean ) { var converted Uint8 converted = Uint8 ( t ) v , err := converted . ToInt64 ( ) . Eq ( t ) return converted , Boolean ( err == nil && v ) }
ToUint8Checked attempts to cast the Int64 to a Uint8.
ToUint8Checked attempts to cast the Int64 to a Uint8 .