main
cast
public function cast($target, Properties $properties, Stub $stub, bool $is_nested, int $filter = 0): array