Updated genFind to extract the base data type