class String
  def to_class
    Kernel.const_get(self)
  end
end
ruby-1.8.7-p352 :012 > "Integer".to_class
 => Integer