Added casting for NSString isDate and isTelephone methods