>> >> You can't cast null objects. > > This is not directly relevant, but yes, you can cast null to any > object type, because any object type can be null.
I don't know why I wrote that, but of course you are quite correct. I suspect I was getting myself muddled with Double foo = null; double bar = (double)foo; which is caused by the unboxing behaviour - i.e. calling foo.doubleValue(). Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
