Adds a 'to_sym' to type in case it's string