public static long AsInt64(Complex c)
 {
     if (c.IsReal)
     {
         if (ExMath.IsInt64(c.Re))
         {
             return((long)c.Re);
         }
         throw ExceptionHelper.ThrowInvalidArgumentType("integer", "real");
     }
     throw ExceptionHelper.ThrowInvalidArgumentType("integer", "complex");
 }