Heystack\Core\ViewableData\CastObjectTrait
Class CastObjectTrait
This class is used for allowing functions on classes extending ViewableData to return
objects and have them casted as long as the object returned doesn't extend ViewableData
Warning this trait disables the object cache used in templates