// ToInt16 attempts to cast the Boolean to a Int16.
// The result is not checked for an overflow.
// Use the ToInt16Checked version of this method if you need to check for
// an overflow.
ToInt16 attempts to cast the Boolean to a Int16.
The result is not checked for an overflow.
Use the ToInt16Checked version of this method if you need to check for
an overflow.
// ToInt16 attempts to cast the Boolean to a Int16 . // The result is not checked for an overflow . // Use the ToInt16Checked version of this method if you need to check for // an overflow .
func (t Boolean) ToInt16() Int16 {
	if t {
		return Int16(1)
	}
	return Int16(0)
}
func ( t Boolean ) ToInt16 ( ) Int16 { if t { return Int16 ( 1 ) } return Int16 ( 0 ) }
ToInt16 attempts to cast the Boolean to a Int16.
ToInt16 attempts to cast the Boolean to a Int16 .