basic typecasting on query parameters