Extract types from reflection