public void setVariable(String var, Object val){
		for(String p : localVars.keySet()){
			if(p.equals(var)){
				String type = localVars.get(p).getClass().getSimpleName();
				if(!var.getClass().getSimpleName().equals(type)){
					try{
						if(type.toLowerCase().equals("float"))
							localVars.put(p, (float) val);
						if(type.toLowerCase().equals("integer"))
							localVars.put(p,(int) val);
						if(type.toLowerCase().equals("string"))
							localVars.put(p,(String) val);
						if(type.toLowerCase().equals("boolean"))
							localVars.put(p, Boolean.parseBoolean(val.toString()));
					} catch (Exception e){
						System.out.println("Wrong type; "+type);
						e.printStackTrace();
						}
				} else 
					localVars.put(p,val);
			}
		}
	}