Cast to string to handle nil case