Use the utility method for parsing integers safely.