Is it possible to avoid loop which will cast one object type to another in split() or Arrays.asList()?
===

I'm trying to simplify my code and I have a question: is it's possible to convert string of IDs separated by coma to specific collection type? 

So, my code now is:

    String [] condition_list_id_tmp = rule.getContractRuleConditions().split(",");
    List<String> condition_list_id = Arrays.asList(condition_list_id_tmp);
    List<Long> condition_ids = new ArrayList<Long>();
    	for (String str_id : condition_list_id){
    	     condition_ids.add(Long.parseLong(str_id));
    	}
    		
Can I simplify this code by using for example `Type collectionType = new TypeToken<List<Long>>() {}.getType();` like in gson?