6 package com.google.appinventor.components.runtime.util;
14 public static <T> T
cast(Object o, Class<T> tClass, String expected) {
17 }
else if (tClass.isInstance(o)) {
18 return tClass.cast(o);
24 public static <T> T
castNotNull(Object o, Class<T> tClass, String expected) {
28 return cast(o, tClass, expected);