Add DateTime to cast() logic
Add DateTime to cast() logic