bool unwrap(const Number& cfvalue, float& value) { if (!cfvalue.c_obj()) { return false; } return CFNumberGetValue(cfvalue.c_obj(), kCFNumberFloatType, &value); }
bool unwrap(const Number& cfvalue, double& value) { if (!cfvalue.c_obj()) { return false; } return CFNumberGetValue(cfvalue.c_obj(), kCFNumberDoubleType, &value); }
bool unwrap(const Number& cfvalue, long long& value) { if (!cfvalue.c_obj()) { return false; } return CFNumberGetValue(cfvalue.c_obj(), kCFNumberLongLongType, &value); }