In GL you can use any query function type and the value of the parameter being queried will be converted to the type of the function used.