Bug Fix for TablePrinterSink

Fixed ClassCastException