In reply to DhavalP:
You do not have to do that. But it should look like this:
class my_item #(type T = int) extends uvm_sequence_item;
T my_var;
function new(string name = "");
super.new(name);
endfunction
....
endclass
Or you have the parameter in a pkg.