Set each of your parameters DataType property, and then you can call Prepare ie:
qry.ParamByName('foo').DataType := TFieldType.ftString;
qry.ParamByName('bar').DataType := TFieldType.ftInteger;
qry.Prepare;
The DataType property is of type Data.DB.TFieldType, here is a list of all possible values