Solved the "cannot cast Integer to int" caliber problem :/