This ClassCastException is thrown in the following case :
load a single WMS layer
Right-click on the category containing this WMSLayer
I can't reproduce with r. 3760 and jre 1.6.0_27 (32-bit) on Windows.
Can't reproduce it either,
Don't know what hapened, I close the ticket