Allow symbols as well as strings for determining the type