Kotlin: Operator '==' cannot be applied to 'kotlin.Int' and 'Person?' Error
<p>I have the following code from the "Kotlin In Action" MEAP book that is supposed to find the maximum age of people in the group and return all people of that age:</p>

<pre><code>data class Person(val name: String, val age: Int)
val people = listOf(Person("Alice", 29), Person("Bob", 31))
people.filter {it.age == people.maxBy(Person::age)}
</code></pre>

<p>However, I am receiving the following error:  "Kotlin: Operator '==' cannot be applied to 'kotlin.Int' and 'Person?'."  How do I fix the code to make it work?</p>