Change convert to atoval.

The function atoval is like atoi and atof, but overloaded.
Update design doc.