'HTMLText', 'DateField' => 'Date', ]; private static array $casting = [ 'DateField' => 'Text', // won't override 'TimeField' => 'Time', 'ArrayAsText' => 'Text', ]; public function castingHelper(string $field): ?string { if ($field === 'OverrideCastingHelper') { return 'Currency'; } return parent::castingHelper($field); } }