どうすればダブルに何かを回したりキャストしたりできますか? CLLocationDegrees は実際には double です。それを double としてキャストして、常に double を返すようにするにはどうすればよいですか?
if(self.lastKnownLocation == nil ){
double lat = [CLController sharedInstance].latitude;
double lng = [CLController sharedInstance].longitude;
}else{
CLLocationDegrees lat = self.lastKnownLocation.coordinate.latitude;
CLLocationDegrees lng = self.lastKnownLocation.coordinate.longitude;
}
NSNumber *tempInt = self.lastPostsGrabbedCounter;
//Make call to get data with lat lng
self.webServiceAllCount = [Post findAllLocalCountTotal:(CLLocationDegrees)lat withLong:(CLLocationDegrees)lng];