Using Casts in a NSPredicate
===

Have a class member "total" which is of type int.

This works:
    
     NSPredicate *filter = [NSPredicate predicateWithFormat: @"total = %i", [searchText  intValue]];

I would like to treat "total" as a string in my predicate filter so I can use BEGINSWITH

Here is my intent (pseudo code)

    NSPredicate *filter = [NSPredicate predicateWithFormat: @"[total stringValue] BEGINSWITH %@", searchText];

How can I do this?

Thanks!