code: def asint(vari):
      
      if isinstance(vari, Poly):
  
          core = vari.A.copy()
          for key in vari.keys:
              core[key] = numpy.asarray(core[key], dtype=int)
  
          return Poly(core, vari.dim, vari.shape, int)
  
      return numpy.asarray(vari, dtype=int)
docs: Convert dtype of polynomial coefficients to float.
  
      Example:
          >>> poly = 1.5*cp.variable()+2.25
          >>> print(poly)
          1.5q0+2.25
          >>> print(cp.asint(poly))
          q0+2