title: return type of a generic object creation method
body: <p>I want to make a method which takes a class name as an argument and returns an object of that class, my current implementation returns a type of <code>Object</code> which is casted to the correct type when needed. My question is, can I implement this with a generic method? Like... give the class name and directly return an instance of it?</p>