   @discardableResult
   public func set(_ value: Bool, forKey key: String,
     withAccess access: KeychainSwiftAccessOptions? = nil) -> Bool {
-
-    var bits = unsafeBitCast(value, to: UInt8.self)
-    let data = Data(bytes: &bits, count: sizeof(Bool))
+  
+    let bytes: [UInt8] = value ? [1] : [0]
+    let data = Data(bytes: bytes)
 
     return set(data, forKey: key, withAccess: access)
   }

  */
  public func get(_ key: String) -> String? {
    if let data = getData(key) {
      if let currentString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String {
        return currentString
      }

  */
  public func getBool(_ key: String) -> Bool? {
    guard let data = getData(key) else { return nil }
    guard let firstBit = data.first else { return nil }
    return firstBit == 1
  }

  /**
