How can i get 0 as integer value from (int)null.
(int)null
EDIT 1: I want to create a function that will return me default values for null representa
You can't cast a null to an int, as an int is a value type. You can cast it to an int? though.
null
int?
What is it you want to achieve?