Disable implicit casts to primitive types