NextDom\Helpers\Utils::cast
Convert object of type to another
Signature
public function cast(mixed
$sourceObject,
string
$targetClassName )
Parameters
$sourceObject
— mixed- Source object
$targetClassName
— string- Name of the target class
Returns
- mixed
- Object of destinationClassName type