long i; if(SvIOK(a)) i = SvIV(a); #### double d; if(SvIOK(a)) d = SvNV(a); #### long long ii; if(SvIOK(a)) ii = (long long)SvIV(a);