casting required for nullable even after checking for null - C#