Just thinking out loud: would it also be nice to support "long" (primitive) as parameter? Maybe the code above already supports it, but a test case could prove it.