dynamic_cast updates for associativelist.cpp
dynamic_cast updates for batchlan.cpp