From: Paul Brannan Date: 2005-09-09T02:37:00+09:00 Subject: Re: Lexical Casts with Ruby On Thu, Sep 08, 2005 at 02:09:32AM +0900, Eric Mahurin wrote: > so you could do: > > "10".to(Integer) # 10 > String.from(10) # "10" > > If this is a good solution for you, maybe an RCR for this more > general conversion mechanism is in order. See RCR#280. The implementation is 34 lines long. Paul