bbaldino
collection.forOne { it as MyType it.myTypeFieldOne shouldBe "foo" it.myTypeFieldTwo shouldBe "bar" }