My scenario should be simple... the type I want to convert FROM is ALWAYS 'string'. What I want to convert to... could be many things - ints, DateTimes, ... strings, etc.
This would be easy:
string valueToConvertFrom = "123";
int blah = Convert.ToInt32(valueToConvertFrom);
However... I don't know (until runtime) that the value I nee...
            
           
          
            
            Hi, I've got the following question.
I've got one class "Instellingen" that's a field in 3 other classes
    public class Instellingen
    {
        private int _ID;
    }
    public class Class1: Button
    {
        private Instellingen _Instellingen;
    }
    public class Class2 : Label
    {
        private Instellingen _Instelling...
            
           
          
            
            Hello SO,
I'm trying to convert an int into a byte in Processing 1.0.9.
This is the snippet of code that I have been working with:
byte xByte = byte(mouseX);
byte yByte = byte(mouseY);  
byte setFirst = byte(128);
byte resetFirst = byte(127);
xByte = xByte | setFirst;
yByte = yByte >> 1;
port.write(xByte);
port.write(yByte);
Accord...