Add type accessor