class_docstr: docstring
class_docstr_tok: ["docstring"]
code: def to_domain(self, domain):
      element = domain.convert_from(self.element, self.domain)
      return self.new(element, domain)
  
imports: from ..constructor import construct_domain
  from sympy.polys.domains import Domain, ZZ
label_desc: Use image node_id 6 for calling the DomainScalar obj's underlying member method code with example usage: obj.to_domain(domain) and returns: self