From: Chris Pine Date: 2003-04-26T07:54:07+09:00 Subject: Re: Newbie question: behaviour of String === String In order to get the behavior you want, you could try this: case obj.class.id when String.id 'is a String' when Integer.id 'is an Integer' else 'is something else' end Chris