             throw ParserError.validation(failureReason: "JSON object was not of type: Float")
         }
 
-        self = (json as! NSNumber).floatValue
+        self = json as! Float
     }
 }
 

            throw ParserError.validation(failureReason: "JSON object was not of type: Double")
        }

        self = (json as! NSNumber).doubleValue
    }
}


            throw ParserError.validation(failureReason: "JSON object was not of type: Bool")
        }

    }
}

