Parses the provided raw string into an object of the given type.
the parsed object, or null if parsing failed
the string value to parse
the target type class