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