Cast Object to Integer