   return nil
 }
 
-func convertToNumber(_ value: Any) -> NSNumber? {
+private func convertToNumber(_ value: Any) -> NSNumber? {
   switch value {
   case let value as Bool:
     return value as NSNumber

  }
}

func convertNSObjectToDictionary(_ object: NSObject) -> [String: Any] {
  var result: [(String, Any)] = []
  var mirror: Mirror? = Mirror(reflecting: object)

  repeat {
    // ensure we can property handle lazy variables
    // we use `object.value(forKey:)` to force load lazy variables
    result += mirror?.children
      .compactMap { $0.label?.deletingPrefix("$__lazy_storage_$_") }
      .map { ($0, object.value(forKey: $0) as Any) } ?? []

  }
}

private func convertToDictionary(_ value: Any) -> [String: Any]? {
  switch value {
  case let value as [String: Any]:
    return value
