/// API utilities /// /// @author Pierre Hubert /// Casting helper T cast<T>(dynamic val) => val is T ? val : null;