In reply to silverace99:
get_sequencer returns an object of type uvm_sequencer_base.
See here:
virtual function uvm_sequencer_base get_sequencer (....);
This is your Problem. You have to perform y type Cast to your sequencer type.
Declaring the p_sequncer using this UVM macro
`uvm_declare_p_sequencer(my_sequencer)
is doing this work for you.
It is equivalent to
my_sequencer p_sequencer;
if ( ! $cast(p_sequencer, get_sequencer()) )
`uvm_fatal(...)