From: Yukihiro Matsumoto Date: 2011-01-11T18:38:48+09:00 Subject: [ruby-core:34343] Re: ext/bigdecimal/lib/bigdecimal/util.rb Hi, In message "Re: [ruby-core:34340] Re: ext/bigdecimal/lib/bigdecimal/util.rb" on Tue, 11 Jan 2011 18:12:23 +0900, Charles Oliver Nutter writes: |It may or may not be germaine to this discussion, but because JRuby |users often want to show their intent to coerce Ruby objects to many |different Java types, we add a "to_java" method on all objects when |Java support is enabled. It accepts one parameter: the type of object |to which the object should be coerced (usually a Java class). A |similar "generic" to_* protocol for Ruby would be nice to have. |Something like #to_any? I'd happy to open discussion on general type conversion framework. Open new issue please. matz.