The current forms API doesn't include everything and isn't finalized yet. I'd recommend waiting for a bit. Anyway, you just need a class that extends the class the error is telling you to give.
@Sandertv i use your api/methods of blockhorizons to implement modal forms now, do each player get a unique form? What if two players at the same time open the same window? Also whats that range 3200?