Cast a value to a Symbol