CSharp extensions for common functions such as converting nullable types to none nullable types