From: ts Date: 2001-12-11T22:52:31+09:00 Subject: [ruby-talk:28213] Re: Ensuring a specific type >>>>> "F" == Fabian Senftenberg writes: F> Now, is it possible to "cast" a block in order to be able to use a F> specific function on it? Like: #{@start + @duration}.usec where the ^^^^^^^^^^^^^^^^^^^^^ F> whole #{} block is supposed to be of kind Time? Well, I've a problem with this. For me this is a comment not a block :-) Can you give me an example where it's a block (except in a String) ? To reply to your question, no you can't "cast" but you can call a method which try to make the conversion. For example String#to_i try to "cast" a String to a Fixnum. Or you can call a method which try to make the conversion, for example Kernel#Integer Guy Decoux