From: Marcin Tyman Date: 2007-08-21T20:59:44+09:00 Subject: How to "cast" in Ruby 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/.