Gets the value under key as type or null if it doesn't exist.
If type is incompatible with an existing entry and JVM assertions are enabled.
Gets the value under key as T or null if it doesn't exist.
If T is incompatible with an existing entry and JVM assertions are enabled.