Response constructor needs to cast to integer not string