Creating an NSTimer with varying interval through a wrapper method not working
I'm trying to create an NSTimer using a wrapper method, so that I can invalidate it and replace it with a new NSTimer with a different interval. Here is my code:

    - (void) createTimerWithInterval:(float *)interval{
    
    	self.timer = [NSTimer scheduledTimerWithTimeInterval:[[NSNumber numberWithFloat: interval]floatValue] target:self selector:@selector(scrollWrapperForTimer) userInfo:nil repeats:YES];
    }

I am getting the following result from the compiler. Why? 

> incompatible type for argument 1  of 'numberWithFloat'. 
Creating an NSTimer with varying interval through a wrapper method not working
===

I'm trying to create an NSTimer using a wrapper method, so that I can invalidate it and replace it with a new NSTimer with a different interval. Here is my code:

    - (void) createTimerWithInterval:(float *)interval{
    
    	self.timer = [NSTimer scheduledTimerWithTimeInterval:[[NSNumber numberWithFloat: interval]floatValue] target:self selector:@selector(scrollWrapperForTimer) userInfo:nil repeats:YES];
    }

I am getting the following result from the compiler. Why? 

> incompatible type for argument 1  of 'numberWithFloat'. 