Added castings() functions to a few DAOs.
Corrected bug in cache_lib::multi_delete()