Removed unnecessary cast in Tiles class