Cast null to the type of another field. @param The generic type of the cast field @param as The field whose type is used for the cast @return The cast field
(Field<T> as)
| 18803 | * @return The cast field |
| 18804 | */ |
| 18805 | @NotNull |
| 18806 | @Support |
| 18807 | public static <T> Field<T> castNull(Field<T> as) { |
| 18808 | return inline((Object) null).cast(as); |
| 18809 | } |
| 18810 | |
| 18811 | /** |
| 18812 | * Cast a value to another type. |