Change generate repo to typecast