Validate that the type of an activity object is a string