Hi, How to avoid invalidCastException: private decimal? _inReminderDays; _inReminderDays = (decimal?)_inActionTemplateListTableAdapter.GetReminderDaysByDescriptionTrid(_inActionListTable[0].DescriptionTrId);