Hi,
I need to know how to "cast" ruby objects on another i.e.

arr = Array.new()
doc = REXML::Document.new(grListXML)
doc.elements.each("*/group") do |el|
    temp = el.elements["id"].get_text
     arr << temp
end

I want to convert temp variable to intager. Is is any simple way to do
it if REXML has no to_i methods?


Thanks for any help.
MT
-- 
Posted via http://www.ruby-forum.com/.