I expected to see somewhere near the top:

    if (pclass == paramType) return param;

Doesn't that rate fastest-path treatment for being both common and easy to detect and handle?