Let the total age of the grandparents, uncles, aunts, and cousins be as follows:
- Total age of 2 grandparents = \( 64 \times 2 = 128 \)
- Total age of 2 uncles = \( 42 \times 2 = 84 \)
- Total age of 2 aunts = \( 38 \times 2 = 76 \)
- Total age of 4 cousins = \( 16 \times 4 = 64 \)
Total age of all family members = \( 128 + 84 + 76 + 64 = 352 \).
The total number of family members = 10.
Therefore, the average age is:
\[
\frac{352}{10} = 35.2
\]
So, the average age of the family members is \( 35.2 \) years.