deprecated the old TypeSize function, added PH Datatypes enum