+(NSString*)fromTypeToString:(id)data{
NSNumber *myNumber = (NSNumber *)data;
int minThreshold = [myNumber intValue];
if ((int)minThreshold < 1 )
{
NSLog(@"Not a number");
}
else{
if (strcmp([myNumber objCType], @encode(BOOL)) == 0) {
returnString = @"BOOL";
NSLog(@"this is a bool");
} else if (strcmp([myNumber objCType], @encode(int)) == 0) {
returnString = @"int";
NSLog(@"this is an int");
}
else if (strcmp([myNumber objCType], @encode(float)) == 0) {
returnString = @"float";
NSLog(@"this is an float");
}
else if (strcmp([myNumber objCType], @encode(double)) == 0) {
returnString = @"double";
NSLog(@"this is an double");
}