new method to get type argument from a specific index.