Made some minor changes

Changed a cast to as
Commented some unused Xbox code