Empty dates should be returned as null by typecast