findViewById not accepting type argument even with compileSdkVersion 30

I generally use kotlin for android but my college wants me to use Java. So I created a new java project in android studio. The problem is I don’t want to cast the return value of findViewById() …