Refactored converter from unsafe Parse to safer TryParse