Sync: moved int params cast to router