FIX convert String to Long

Fix convert String to Long.
And Add some Type HINTS.