update type converter to support nullable struct