title: The return type 'int' isn't a 'String?', as required by the closure's context
body: <p>what is the problem when I convert the string type value into an int so it will give me the following error mentioned in question.</p>