updated CastUtil, improved GeneralTableRowCallback