
## CastToDayType {#casttodaytype}

Casts .Net's DayOfWeek to DayType .

**Returns:** A cast day type.

```cpp
CastToDayType(System::DayOfWeek dw)
```

| Parameter | Description |
| --- | --- |
| dw | The day of week to cast from. |

