Need for the $cast task in System Verilog

In reply to Shri Ganesh:

Declare the tasks ‘virtual’.