File extends Object (like all classes do). So the above is simply compiled by the JSP container to something like
com.Bean aBean = new com.Bean();
File file = new File("some path");
aBean.setMyObect(file);
There's nothing to convert, since a File is an Object.
Note that jsp:useBean
and jsp:setProperty
are obsolete for a looooong time. You shouldn't use these directives anymore. Use an MVC controller (or at least a self-implemented MVC pattern), and use the JSTL and the JSP EL to access beans created and stored in request attributes by the controller. The view (i.e. the JSP) shouldn't create and populate beans. That's not its job.