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() manually. Instead I want to pass EditText as type parameter which the function is not accepting as anticipated. I get the error :