I have code that is similar to this:
public xyz (int? a)
{
if (a.HasValue)
{
// here DoSomething has parameters like DoSomething(int x)
blah = DoSomething(a);
I am getting the error (cannot convert from int? to int). Is there a way I can pass the variable 'a' to my function without having to do DoSomething(int? x)
?