Convert tileObject to typescript