In sage the types are not that important (it is just an implementation 
detail), but the parent of an object is since that says what the 
mathematical meaning of an object is. Try:

q=p.parent()(q)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to