Implemented static data type cast in tag statistics method for CUnit.