Here is a handy reference guide to variable conversions. Feel free to add your own.
String to int
String to double
String to long
String to boolean
int to String
int to double
int to booleanint myInt = 420; double myDouble = (double)myInt;
ASCII code to Stringint myInt = 0; boolean myBoolean = (myInt != 0);
double to String
double to int
char to Stringdouble myDouble = 420.5; int myInt = (int)myDouble;
boolean to String
byte Array to String