def str_to_int_v2(s: str) -> int:
    """Convert the given string into it's integer form.

    Args:
        s: The string whose integer form to be gotten.

    Returns:
        The integer form of the given string.
    """

    res = 0
    initial_point = 0 if s[0] is not '-' else 1

    for i in range(initial_point, len(s)):
        cur_digit = ord(s[i]) - ord('0')
        res = res * 10 + cur_digit

    return (res if not initial_point else -res)