Added GetDefault and correct conversion to nullable types