Changed API names.
Aimed to proper typecasting.