   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 convertToDictionary(_ value: Any) -> [String: Any]? {
  switch value {
  case let value as [String: Any]:
    return value

  XCTFail(error, file: file, line: line)
}

private func diff(_ result: [String: Any], _ expected: [String: Any], path: String = "") -> String? {
  // check keys
  if Set(result.keys) != Set(expected.keys) {
    let lhs = result.keys.map { " - \($0): \(result[$0] ?? "")" }.joined(separator: "\n")
