If you use CType or CInt or another conversion function to convert a null integer to a regular integer, a null value will be converted to zero.
Check if the type with a null value has the value specified in @Rhapsody's answer.
You can also use methods like nullable .GetValueOrDefault() and .GetValueOrDefault(x) . Overloading without any parameters returns the default value for the data type if the value is NULL. For instance. The integer default value is zero; The default Boolean value is False. Overloading with a parameter allows you to specify the default value to use if the value is null.
Nullable.GetValueOrDefault Method
source share