тип Java

List y;
...
if (y instanceof ArrayList) { 
  ...its and ArrayList...
}
Naughty Newt