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