Properly retrieve type