Functions of initializeCastApi fully declared