Added 'autocorrect' method to prevent type mismatch (NSString converted to NSNumber if necessary, etc...)