working on Core Data JSON Compatibility
made isValidConvertedValue use switch instead of if