Fixes type mismatch

Change return type to have an explicit "out" parameter for M10