Convert the input to a given type,
Converts a value to a class instance using the given class' constructor.