I want to save the value from the "points" key from a dictionary called myInfo in
myPoints variable so I can use it in another function. I have been trying to cast it as Int, but the value when printed out is always 0. Meanwhile, if I just print out temp, it prints the value out correctly.result with
print(type(of: temp)) is Optional< Any >