Fixed sample code

Wrong parameter type in sample code.