explicit cast in of_size at_impl to avoid warning