# Need for the $cast task in System Verilog

**URL:** <https://verificationacademy.com/forums/t/need-for-the-cast-task-in-system-verilog/34640>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Learning-System-Verilog, cast\
**Created:** [July 3, 2018, 11:37am UTC](https://verificationacademy.com/forums/t/need-for-the-cast-task-in-system-verilog/34640 "2018-07-03T11:37:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![javatea](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@javatea](https://verificationacademy.com/forums/u/javatea)\
**Post date:** [July 5, 2018, 5:54am UTC](https://verificationacademy.com/forums/t/need-for-the-cast-task-in-system-verilog/34640/4 "2018-07-05T05:54:26Z")

</div>

_In reply to [Shri Ganesh](https://verificationacademy.com/forums/t/need-for-the-cast-task-in-system-verilog/34640/3):_

child1\_h = new(); // create a child object  
parent\_h = child1\_h; // a parent handle points to a child object

nothing special.  
try to understand class inheritance and oop if you got more questions.

---

_[View the full topic](https://verificationacademy.com/forums/t/need-for-the-cast-task-in-system-verilog/34640)._
