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