Utility methods for Java's primitive types