ElementSelector.ByUniqueID is not working if you have certain packages installed i think.
Try Revit.ElementSelector.ByUniqueId(Id, true)
And use String.ToNumber to convert a text to a number.
Marcel
PS. These questions have all been answered before in the forum, try the search button at the top of your screen.