Use TClass instead of Type.