title: The operator * is undefined for the argument type(s) String, int
body: <p>PROBLEM:</p>
  
  <p>I'm attempting to pull the value of a boolean via sharedpreferences however everytime I attempt to use the value I'm getting a compiler error stating the operator is undefined for the argument type. I'm not sure why this is occuring - I believe I've converted the time boolean to a string - then I should be able to use that as a value to multiply by to get my time value:</p>
  
  <p>SOURCE:</p>
  
  <pre><code>    String PREF = "prefs";
      SharedPreferences prefs = getSharedPreferences(PREF, Context.MODE_PRIVATE); 
      boolean name = prefs.getBoolean("name", true); 
      boolean code = prefs.getBoolean("corename", true);
      boolean time = prefs.getBoolean("time", true);
      boolean ssid = prefs.getBoolean("restricted", true);
  
      String killtime = String.valueOf(time);
  
  
  
  
      Intent intent2 = new Intent(Rules.this, KillTimer.class);
      PendingIntent pintent2 = PendingIntent.getActivity(Rules.this, 0, intent2,
              0);
      AlarmManager alarm2 = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
      alarm.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(),
              killtime * 1000, pintent2); // error is thrown here    
  </code></pre>