Parses the raw text input into the appropriate numerical type.
Must be implemented by subclasses to handle specific types like int or double.
T? parseValue(String rawText);