Performs a {@link #get get} operation but additionally ensures that the value returned is of the specified
{@code type}. If there is no value, {@code null} is returned.
@param key the attribute key to look up a value
@param type the expected type of the value
@param <E> the expected type of the value
@return the typed value or {@code null} if the attribute does not exist.
Performs a {@link #get get} operation but additionally ensures that the value returned is of the specified {@code type}. If there is no value, {@code null} is returned.
@param key the attribute key to look up a value @param type the expected type of the value @param <E> the expected type of the value @return the typed value or {@code null} if the attribute does not exist.