Fix type hint conversion