This is a nifty little trick that I almost forgot about until today. Often times you need to pass a null value into a non-nullable datatype, such as an int. If you don’t know a trick, this can be pretty difficult. Here’s the trick:
Simple eh? Just add a question mark to the end of the datatype. This will force it to become a nullable datatype.