Incompatible error for class

I have parameterised driver and sequencer. During extern function definition,

task master_driver::read_address_channel();



`uvm_do_callbacks(master_driver#(master_driver::Tparams),master_driver_callbacks),post_addr(this,active_read_txn));

When compiling the same getting error

Error-[ICTTFC] Incompatible complex type usage
…/…/…/dvlib/axi/env/master_driver.sv,1260
Incompatible complex type usage in task or function call.
The following expression is incompatible with the formal parameter of the
function. The type of the actual is 'class
$unit::parmas#(32,32…)
while the type of formal is 'class
axi_pkg::master_driver#(class
axi_pkg::params#(32,32…)
Expression this
Source info: cb.post_addr(this,active_rdadd_txn)

params is the class which has all the parameter definitions and the task is extern.

I am using vcs compiler.