Works with primitive types