{"action":"created","issue":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/683","repository_url":"https://api.github.com/repos/joel-costigliola/assertj-core","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/683/labels{/name}","comments_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/683/comments","events_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/683/events","html_url":"https://github.com/joel-costigliola/assertj-core/issues/683","id":159335195,"number":683,"title":"Allow working with the type previously checked through isInstanceOf(…)","user":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars.githubusercontent.com/u/128577?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/milestones/25","html_url":"https://github.com/joel-costigliola/assertj-core/milestones/2.6.0","labels_url":"https://api.github.com/repos/joel-costigliola/assertj-core/milestones/25/labels","id":1817108,"number":25,"title":"2.6.0","description":null,"creator":{"login":"joel-costigliola","id":382613,"avatar_url":"https://avatars.githubusercontent.com/u/382613?v=3","gravatar_id":"","url":"https://api.github.com/users/joel-costigliola","html_url":"https://github.com/joel-costigliola","followers_url":"https://api.github.com/users/joel-costigliola/followers","following_url":"https://api.github.com/users/joel-costigliola/following{/other_user}","gists_url":"https://api.github.com/users/joel-costigliola/gists{/gist_id}","starred_url":"https://api.github.com/users/joel-costigliola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joel-costigliola/subscriptions","organizations_url":"https://api.github.com/users/joel-costigliola/orgs","repos_url":"https://api.github.com/users/joel-costigliola/repos","events_url":"https://api.github.com/users/joel-costigliola/events{/privacy}","received_events_url":"https://api.github.com/users/joel-costigliola/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-06-09T06:59:07Z","updated_at":"2016-06-09T06:59:07Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-06-09T06:12:19Z","updated_at":"2016-06-09T07:48:39Z","closed_at":null,"body":"#### Summary\r\n\r\nWhen writing assertions against instances of `Object`, I frequently find myself asserting the actual object type first, and then casting to that type to add further assertions:\r\n\r\n```java\r\nObject object = …;\r\n\r\nassertThat(object).isInstanceOf(Foo.class);\r\n\r\nFoo foo = (Foo) object;\r\n\r\nassertThat(foo).…\r\n```\r\n\r\nIt would be cool if the instanceOf check returned an assertion for the type I just asserted to:\r\n\r\n#### Example\r\n\r\n```java\r\nassertThat(object).isInstanceOf(String.class).contains(\"bar\");\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/comments/224823654","html_url":"https://github.com/joel-costigliola/assertj-core/issues/683#issuecomment-224823654","issue_url":"https://api.github.com/repos/joel-costigliola/assertj-core/issues/683","id":224823654,"user":{"login":"joel-costigliola","id":382613,"avatar_url":"https://avatars.githubusercontent.com/u/382613?v=3","gravatar_id":"","url":"https://api.github.com/users/joel-costigliola","html_url":"https://github.com/joel-costigliola","followers_url":"https://api.github.com/users/joel-costigliola/followers","following_url":"https://api.github.com/users/joel-costigliola/following{/other_user}","gists_url":"https://api.github.com/users/joel-costigliola/gists{/gist_id}","starred_url":"https://api.github.com/users/joel-costigliola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joel-costigliola/subscriptions","organizations_url":"https://api.github.com/users/joel-costigliola/orgs","repos_url":"https://api.github.com/users/joel-costigliola/repos","events_url":"https://api.github.com/users/joel-costigliola/events{/privacy}","received_events_url":"https://api.github.com/users/joel-costigliola/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T07:48:39Z","updated_at":"2016-06-09T07:48:39Z","body":"No hurry indeed, I have put it for 2.6.0 which is not the next release (2.5.0) to have time to think about it."}}
{"actor":{"display_login":"joel-costigliola"}}