import Foundation extension Bool { var intValue: Int { self ? 1 : 0 } }