I must be missing something, but if you **have** to cast to use this function with a character literal, then isn't there something wrong with the API?