Fixed typos, testing type casting for function