{"action":"created","issue":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/8298","repository_url":"https://api.github.com/repos/DynamoDS/Dynamo","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/8298/labels{/name}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/8298/comments","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/8298/events","html_url":"https://github.com/DynamoDS/Dynamo/issues/8298","id":270021661,"number":8298,"title":"Returning BaseType throws Exception","user":{"login":"moethu","id":8201465,"avatar_url":"https://avatars3.githubusercontent.com/u/8201465?v=4","gravatar_id":"","url":"https://api.github.com/users/moethu","html_url":"https://github.com/moethu","followers_url":"https://api.github.com/users/moethu/followers","following_url":"https://api.github.com/users/moethu/following{/other_user}","gists_url":"https://api.github.com/users/moethu/gists{/gist_id}","starred_url":"https://api.github.com/users/moethu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moethu/subscriptions","organizations_url":"https://api.github.com/users/moethu/orgs","repos_url":"https://api.github.com/users/moethu/repos","events_url":"https://api.github.com/users/moethu/events{/privacy}","received_events_url":"https://api.github.com/users/moethu/received_events","type":"User","site_admin":false},"labels":[{"id":362146056,"url":"https://api.github.com/repos/DynamoDS/Dynamo/labels/Design%20Script","name":"Design Script","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-10-31T16:14:57Z","updated_at":"2018-02-19T18:25:06Z","closed_at":null,"author_association":"NONE","body":"Hi Guys, this is an issue / wish for returning objects converted to their base type if somehow possible. Maybe there is another way to do this, but I wasn't able to find it. Please see below.\r\n\r\n## What did you do? \r\nCreated a Node in C# and returned an object converted to its base type. I have an object of type LoadPattern which inherits an abstract class \"Element\". Now instead of Type LoadPattern, I want to return Type \"Element\". Which is the LoadPatterns BaseType.\r\n\r\n## What did you expect to see?\r\nNo Exception\r\n\r\n## What did you see instead?\r\nAn Exception saying \"Asked to convert non-convertible types\" which is not true. The returned element Type LoadPattern does inherit Type Element which is therefore convertible.\r\n\r\n## Dynamo version\r\n1.3\r\n\r\n## Operating system\r\nWindows 7\r\n\r\n![image](https://user-images.githubusercontent.com/8201465/32235162-0385d9d2-be5f-11e7-9352-836bb3d080be.png)\r\n"},"comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/366771310","html_url":"https://github.com/DynamoDS/Dynamo/issues/8298#issuecomment-366771310","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/8298","id":366771310,"user":{"login":"mjkkirschner","id":508936,"avatar_url":"https://avatars3.githubusercontent.com/u/508936?v=4","gravatar_id":"","url":"https://api.github.com/users/mjkkirschner","html_url":"https://github.com/mjkkirschner","followers_url":"https://api.github.com/users/mjkkirschner/followers","following_url":"https://api.github.com/users/mjkkirschner/following{/other_user}","gists_url":"https://api.github.com/users/mjkkirschner/gists{/gist_id}","starred_url":"https://api.github.com/users/mjkkirschner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjkkirschner/subscriptions","organizations_url":"https://api.github.com/users/mjkkirschner/orgs","repos_url":"https://api.github.com/users/mjkkirschner/repos","events_url":"https://api.github.com/users/mjkkirschner/events{/privacy}","received_events_url":"https://api.github.com/users/mjkkirschner/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T18:25:06Z","updated_at":"2018-02-19T18:25:06Z","author_association":"CONTRIBUTOR","body":"@moethu unfortunately no. I think to be helpful I will need a sample project which reproduces this so I can eliminate some unknowns. Could you provide that? Does not need to be your actual source, just a demo project."}}
{"actor":{"display_login":"mjkkirschner"}}