Getting rid of base type Object