* @param value Value to check
* @param type Type to check
* @return Reference which was checked
*/
@SuppressWarnings("unchecked")
public static <T> T checkInstanceOf(Object value, Class<T> type) {
* @param value Value to check
* @param type Type to check
* @return Reference which was checked
*/
@SuppressWarnings("unchecked")
public static <T> T checkInstanceOf(Object value, Class<T> type) {