Needs to convert dynamic property to string to avoid invalid argument exception.